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

Ending a Program Error

P: n/a
I have encountered a problem with ending any program I build with
VB.net and was hopeing someone might have an answer.

This is a simple example of the code that will cause an error:

In a module I have:

Dim Form As New Form1

Sub main()
Application.Run(Form)
End Sub

then in the form window I simply have a button which has one word in
the click event:

End

each time I run the program it throws an error when the button is
clicked.
Help please...

Also note I have tried application.exit instead of end and get the
same error.
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Me.Close()
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"Travis" <tr*****@safetyontheweb.com> wrote in message
news:17*************************@posting.google.co m...
I have encountered a problem with ending any program I build with
VB.net and was hopeing someone might have an answer.

This is a simple example of the code that will cause an error:

In a module I have:

Dim Form As New Form1

Sub main()
Application.Run(Form)
End Sub

then in the form window I simply have a button which has one word in
the click event:

End

each time I run the program it throws an error when the button is
clicked.
Help please...

Also note I have tried application.exit instead of end and get the
same error.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.