Sorry for the misunderstanding, it's my fault.
I do not want to create a new instance of the Form1. I just want to be able
to show and hide the "Main and Only form" that I use with code in a module
(or inside
the class Form1 but without using the "Me" keyword).
Also, what "DefInstance" is ? It is not an accepted keyword so what should I
put there ??
Thanks again.
"Sarika" <Sa****@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
The code snippet that you have posted will create a new instance of the
Form1 and display it.
By what I understand from yur post is that, you already have an instance
created and you have hidden that instance and now you want to display this
hidden instance, right?
\\\
Public myform As Form1
myform = New Form1
'Hide the instance
myform.DefInstance.Hide()
'Show the hidden instance
myform.DefInstance.Show()
///
HTH