silverstormboy
Newcomer
Hi, I have a simple question.
I have two forms : form 1 and form 2.
Form 1 has one button(button1).
If i click button1, i want form 2 to be opened.
I know that we should declare variable like this:
Dim M as new form2
M.show()
it will create an object form2.
but if i click over and over again, it will create a new form2 again and again.
My question is: how to prevent the button(button1) from creating a New form2?
in another words, if Form2 is still active, clicking on button1 will redirect to the current Form2.
I hope you will understand my question.
thank you for your reply
I have two forms : form 1 and form 2.
Form 1 has one button(button1).
If i click button1, i want form 2 to be opened.
I know that we should declare variable like this:
Dim M as new form2
M.show()
it will create an object form2.
but if i click over and over again, it will create a new form2 again and again.
My question is: how to prevent the button(button1) from creating a New form2?
in another words, if Form2 is still active, clicking on button1 will redirect to the current Form2.
I hope you will understand my question.
thank you for your reply