-
December 23rd, 2006, 08:01 PM
#1
How To Display Dialog Boxes Defined In Form1.h
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 ?
-
December 25th, 2006, 05:59 AM
#2
Re: How To Display Dialog Boxes Defined In Form1.h
Form is a generic form
you need to change Form to the name of the actual form
also make sure you import About.h
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|