Displaying a form Form a Form ?
-
Happy New Year To All, Up until now I have being using VS C++ 2005 to write Console type applications. I have been using VS C++ for about 6 months now. I now have a need to develop a Windows Form application but I am stuck on a issue which most will consider to be pretty basic - but I need to ask anyway. The application I am writing has a main form (Form1) and needs to show a second modal form (Form2), so to do this I have added a form to the project and in Form1.h I have
#include "Form2.h"
Now under the code for Form1.h there is a lot of code, like:public ref class Form1 : public System::Windows::Forms::Form
andvoid InitializeComponent(void)
to just name a few. Ok... where will be the correct place to declare Form2 so that I can then useForm2->ShowDialog();
? Hope all this makes sense :) Regards Fritzables -
Happy New Year To All, Up until now I have being using VS C++ 2005 to write Console type applications. I have been using VS C++ for about 6 months now. I now have a need to develop a Windows Form application but I am stuck on a issue which most will consider to be pretty basic - but I need to ask anyway. The application I am writing has a main form (Form1) and needs to show a second modal form (Form2), so to do this I have added a form to the project and in Form1.h I have
#include "Form2.h"
Now under the code for Form1.h there is a lot of code, like:public ref class Form1 : public System::Windows::Forms::Form
andvoid InitializeComponent(void)
to just name a few. Ok... where will be the correct place to declare Form2 so that I can then useForm2->ShowDialog();
? Hope all this makes sense :) Regards Fritzables -
write the constructor of form1 in that create an object of form2 and call the form2->showdiaLOG
G'Day Kotesh, Can you provide sample code on where and how I would achieve this - remember this is all reasonably new to me. Fritzables.
-
G'Day Kotesh, Can you provide sample code on where and how I would achieve this - remember this is all reasonably new to me. Fritzables.
this site will help you alot in win32 programing http://www.flounder.com/download.htm#Complete Win32 CD Contents click Complete Win32 CD Contents Chinna
-
this site will help you alot in win32 programing http://www.flounder.com/download.htm#Complete Win32 CD Contents click Complete Win32 CD Contents Chinna
Thanks Chinna, Much appreciated. Pete