Show Forms
-
You can use Hide and Show methods of the form
-
You can use Hide and Show methods of the form
-
Post the code snippet
-
Post the code snippet
-
i dont have code snippet i am trying to move from one formm to another but cant find these functions when i press the Form1. they dont appear in drop down
this.Hide()
will hide the form that is open. If Form2 is another class thenForm2 fr=new Form2(); fr.Show()
-
this.Hide()
will hide the form that is open. If Form2 is another class thenForm2 fr=new Form2(); fr.Show()
-
Mujz......... wrote:
i was'nt creating an instance that's why could not access these functions
You can access them without creating instance but you will get an exception during runtime :d
-
Mujz......... wrote:
i was'nt creating an instance that's why could not access these functions
You can access them without creating instance but you will get an exception during runtime :d
Giorgi Dalakishvili wrote:
You can access them without creating instance but you will get an exception during runtime
I think he meant that he was attempting to call them as if they were static methods, rather than instance methods.
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
Giorgi Dalakishvili wrote:
You can access them without creating instance but you will get an exception during runtime
I think he meant that he was attempting to call them as if they were static methods, rather than instance methods.
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
It seems that I have misunderstood :)
-
It seems that I have misunderstood :)
Don't worry - I was a bit confused about what he meant for a moment too.
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
The best way to do this is to create both forms as custom controls, put them both on the one form, and change which one is visible ( and resize the form if need be )
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "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 )