Form within a form call?

  • Thread starter Thread starter Leonard4
  • Start date Start date
L

Leonard4

I have a main form, call it my GUI for my app if you will, I have
another form, an about box. I want to call the about box when I click
a menu item but I don't know how to do it, and it seems so simple yet
its been eating me up for the better part of the afternoon. =(

Any help would be appreciated.
 
I assume you have set up the menu OK? If so then just put something like the
following in the menu item Click handler -

AboutForm aboutForm1 = new AboutForm();
aboutForm1.Show();

AboutForm is the class name for the about box form.

Steve
 
Hi Steve,

I'd like to make a little correction. Since it is about 'About' box usually
it is shown modal

Thus the code, IMHO, should be:

using(AboutForm aboutForm1 = new AboutForm())
{
aboutForm1.ShowDialog();
}
 
Back
Top