By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,677 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,677 IT Pros & Developers. It's quick & easy.

Show/Close a form

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Adam Honek" <Ad*******@Webmaster2001.freeserve.co.uk> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.