So its your application starting point. in which case, when you close the
form on its own, the entire application will exit. you don't have to do
anything because you are not creating the instance of the form.
-CJ
"Sender" <us**@domain.com> wrote in message
news:06****************************@phx.gbl...
I don't think the code you gave works. I am not creating a
form through code. The form1 is already there when I open
the blank solution (and VB project). Then I inserted just
one button titled 'CLOSE ME' where in I wrote the code you
have given. But it shows error.
-----Original Message-----
Dim myForm as Form1 (assuming)
myForm.showdialog()
myForm = nothing
or you could call .Dispose() but garbage collection
usually does that onsetting it to nothing.
-CJ
"Sender" <us**@domain.com> wrote in message
news:02****************************@phx.gbl... In VB6.0 we use Unload Form1 to unload (close) form1 -
what shall we have to write to unload a form in VB.Net
.