August 8th, 2003, 06:59 AM
How can I make a new form visible?
I created a new project (VC++ .net) "Windows Forms...(.net)".
How can I show a new Form when the user clicks on a button?
August 8th, 2003, 08:14 AM
You can use ShowWindow() to make a form visible or not visible. If you want to make a form visible when a button is clicked, you should load the form at runtime (all the forms at once, so the user doesnt need to wait for it to load), and then make them all invisible except for the one you want (the main one I guess) and use ShowWindow when the button is pressed.
August 8th, 2003, 08:39 AM
But what must I #include that the button form the one Form knows that there is another Form ("main-Form" is able to show the "second-Form")?