Click here to Skip to main content
15,914,444 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hey guys
is there any way to create a history button in winform i.e i am designing an app with a form called displayform, the displayform is used by other forms in the app which has datagridview to display their records now i want to add a button 'back' which onclick takes you back to the form that is using the display form.
Posted

1 solution

Hi,

Are you opening the display form in modal dialog window ?

(i.e. are you using Show() or ShowDialog() method to open the displayform?)
 
Share this answer
 
Comments
Killzone DeathMan 26-Sep-12 6:58am    
When you use "Show()" or "ShowDialog()" to display the form, you just do "this.Close()" to close the form!
Maybe I dont understand the question... but I have try to answer it...
Regards,
KZ
Ese ochuko 30-Sep-12 0:51am    
Thanks for your reply, am using show(), now the question is history button like that in a website(back and forward), when you click on back button it takes you back to the initial web page.hope you understand, now i want to do this in winform app

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900