Hello.
I have a user control and a button.
When I click on the button, a new form is opened.
I do it in this way:
protected static MyForm myForm1 = new MyForm();
....
public void buttonClicked()
{
myForm = new myForm();
myForm.Show();
}
the problem is, that when I click on the button again, another form will be opened.
I want only one form to be able to be opened.
How can I make that?
Thanks