Closing a form and enable another one!
-
Hi, I am making a program and in the menu bar I did a menu bar item called About. Now I would like that when I open the About form the main form will be disabled. I did that and it worked. But now how should I make it enabled again after I close the About form? Thanks a lot
-
Hi, I am making a program and in the menu bar I did a menu bar item called About. Now I would like that when I open the About form the main form will be disabled. I did that and it worked. But now how should I make it enabled again after I close the About form? Thanks a lot
Hi, You want to display your about form as a modal dialog:
private void menuItemHelpAbout_Click(object sender, System.EventArgs e)
{
FormAbout dlg = new FormAbout();
dlg.ShowDialog();
}This will "disable" your main form while the about box is shown. ---------------------------- Be excellent to each other :)
-
Hi, You want to display your about form as a modal dialog:
private void menuItemHelpAbout_Click(object sender, System.EventArgs e)
{
FormAbout dlg = new FormAbout();
dlg.ShowDialog();
}This will "disable" your main form while the about box is shown. ---------------------------- Be excellent to each other :)
I don't think you understood me. I disabled the form but I would like that when I close the About form, the main form will be enabled again. How can I do that? thanks