When I try to Maximize a Form when it is in a Minimized state, (I am using Windows Form) It will not open. Can't figure why.
Here is an example of what I'm doing:
Button_X_Click(args, Events e)
{
Form1.ActiveForm.WindowState = WindowState.Minimized;
DialogResult dr = MessageBox.Show
(
this,
"Would you like to open Form?",
"Title",
MessageBoxButtons.YesNo
)
if (dr == System.Windows.Forms.DialogResult.Yes)
{
Form1.ActiveForm.WindowState =
FormWindowState.Maximized;
MessageBox.Show("Done"); //For Testing
}
Somehow, it does not open my Form. It does show me the "Done" MessageBox.
Could use some help here ;)