Click to See Complete Forum and Search --> : How To Display Dialog Boxes Defined In Form1.h


Noreturn
December 23rd, 2006, 08:01 PM
In an application, i want my About.h form dialog to run when i click About menu. In the MSND library, i saw such an example to display user defined dialogs;

{

Form ^ f = gcnew Form();
f->ShowDialog();
}

And i changed this code to display my About.h form dialog such as;

{

Form ^ About = gcnew Form();
About->ShowDialog();
}

But, i still see the same empty dialog instead of my About.h form. So how can i display this dialog when i click About menu ?

2MuchRiceMakesMeSick
December 25th, 2006, 05:59 AM
Form is a generic form

you need to change Form to the name of the actual form
also make sure you import About.h