* "Joshua Kendall" <an*******@discussions.microsoft.com> scripsit:
But It closed my whole app when I used it.
It seems you used it on your main form and your application will loose
its message loop.
Add this code into a new code file and set the project's startup object
(in the project properties) to 'Sub Main'.
\\\
Public Class Main
Public Sub Main()
Call (New Form1()).Show()
Application.Run()
End Sub
End Class
///
In a button on your 'Form1':
\\\
(New Form2()).Show()
Me.Close()
///
You can exit the application by calling 'Application.ExitThread'.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>