Show/Close a form

  • Thread starter Thread starter Adam Honek
  • Start date Start date
A

Adam Honek

Why oh why has MS changed so much in VB.NET

I can't even figure out how to show/close a form as formname.show() doesnt
work and
the following doesn't either:

formname.activeform.close() (or show) doesn't seem to work but will compile.

Thanks,
Adam H.
 
Adam Honek said:
I can't even figure out how to show/close a form as formname.show() doesnt
work and

\\\
Dim f As New FooForm()
f.Show()
///

Showing a form modally:

\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///

Inside a form, use 'Me.Close()' to close the form. From outside the form
you can call the 'Close' method of the form instance in order to close it.
 
Back
Top