forms loading [modified]
-
i made a multi form application.but i don't know how to load a form using a button of main form. -- modified at 1:22 Wednesday 10th October, 2007
You create an instance of he form class and call ShowDialog on it. If you didn't know this, you really need to buy a book and work through it, if you want to get anywhere.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
i made a multi form application.but i don't know how to load a form using a button of main form. -- modified at 1:22 Wednesday 10th October, 2007
christian is correct this is the first step in developing windows application.. lots of tutorials are available on net which starts from scratch.. better read them first. nyways for this particaular problem of yours, here is the code.. in button click event of form1 code like this..
button1_click() dim a as new form2 'makes the instance for form2 a.show() ' shows the form2 on clicking of button1 me.close ' for closing of form1(optional)