Y
ywchan
when i press a button, a form.Show is triggered
the form provides some reference information for me to input information in
the parent form, so i don't want to use ShowDialog.
besides, i want the form to opened once only
how can i do this?
i use
form1 frmReference;
if (frmReference == null)
{
frmReference = new form1();
}
frmReference.Show();
I can successfully control a form to be opened once only
but when i close the form, and press the button again...
there is error encountered....
thanks!
the form provides some reference information for me to input information in
the parent form, so i don't want to use ShowDialog.
besides, i want the form to opened once only
how can i do this?
i use
form1 frmReference;
if (frmReference == null)
{
frmReference = new form1();
}
frmReference.Show();
I can successfully control a form to be opened once only
but when i close the form, and press the button again...
there is error encountered....
thanks!