D
Dolphin White
I have two forms, one named FormA, another named FormB, and has the code as
list:
code in FormA:
FormB dlg = new FormB(this);
dlg.ShowDialog();
code in FormB:
_parent.Hide(); //_parent is the parameter passed by constructor
.......
_parent.Show();
_inputPanel.Enabled = false; // <--- Throw an exception, no detail
information.
But if I change the code as below:
code in FormB:
_parent.Hide(); //_parent is the parameter passed by constructor
.......
_inputPanel.Enabled = false;
_parent.Show(); //It works fine.
Why the second one works fine, and the first one thrown an unknown
exception?
Thanks!
list:
code in FormA:
FormB dlg = new FormB(this);
dlg.ShowDialog();
code in FormB:
_parent.Hide(); //_parent is the parameter passed by constructor
.......
_parent.Show();
_inputPanel.Enabled = false; // <--- Throw an exception, no detail
information.
But if I change the code as below:
code in FormB:
_parent.Hide(); //_parent is the parameter passed by constructor
.......
_inputPanel.Enabled = false;
_parent.Show(); //It works fine.
Why the second one works fine, and the first one thrown an unknown
exception?
Thanks!