Calling forms
-
ok i only know very little a made a form1 and a form2 what i do is hide form1 and open form2 now what i need to know is how then can i close form2 and reopen form1 anyone please
-
ok i only know very little a made a form1 and a form2 what i do is hide form1 and open form2 now what i need to know is how then can i close form2 and reopen form1 anyone please
Not very clear about the way both forms are being used in your application. However, please know that if a Form has been hidden only using Hide() method, it may be shown again by calling Form.Show() method. Any Form can be closed by calling its Close() method. If a form has been closed you may creating a new object of the form and call its show method. -Dave.
Dave Traister, ComponentOne LLC. www.componentone.com
-
ok i only know very little a made a form1 and a form2 what i do is hide form1 and open form2 now what i need to know is how then can i close form2 and reopen form1 anyone please
The big tragedy of winforms and designers is that so many people create forms before they learn a little coding, then they get stuck down the line. I would advocate learning console stuff first. Having said that, if you want to hide form1 while form2 is visible, your best bet is to turn them both into controls and switch which one is visible on a single form.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Not very clear about the way both forms are being used in your application. However, please know that if a Form has been hidden only using Hide() method, it may be shown again by calling Form.Show() method. Any Form can be closed by calling its Close() method. If a form has been closed you may creating a new object of the form and call its show method. -Dave.
Dave Traister, ComponentOne LLC. www.componentone.com
i do know console programming in c++ you can go to www.planetsourcecode.com and serch Gregory W Bryant under C++ to see my programs but i dont know really any c# and i created the first form as a login the second displays a buddy list now on the second one i have a log out button that i want to close the second form and open the original first form not a new object i have everything done but reopening the first form