"angus" <an***@discussions.microsoft.com> schrieb:
anyhow, is was wondering what code i should use to open a existing form
from
an other form.( clicking on a button and then getting the next one, whil
closing the other one.)
\\\
Public Module Program
Public Sub Main()
Dim f As New Form1()
f.Show()
Application.Run()
End Sub
End Module
///
In the project properties, select 'Sub Main' as startup object. Place the
code below in a button's 'Click' event handler:
\\\
Dim f2 As New Form2()
f2.Show()
Me.Close()
///
You can exit the application by calling 'Application.ExitThread'. Take a
look at the 'ApplicationContext' class too.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>