473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Ending a Program Error

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
1 1469
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
0
by: Robert Salasidis | last post by:
I am trying to get an email application working in ASP.Net I was trying to use a remote SMTP server (on my web site - but hosted by a third party), but was constantly getting the 'Could not...
1
by: Ricky | last post by:
I'm trying to run a program directly from the web. It's working perfectly, but a simple "End" statement or "Application.Exit" do not work for me and I get permission errors. How can I end a...
0
by: thomasp | last post by:
Using VB2005 Beta 2 When I closes out a debug session in the IDE, I receive the following error. The error seems to have no effect on the program. I click continue and all is well. When the...
1
by: Travis | last post by:
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...
27
by: cj | last post by:
I run this program and to exit click the X in the upper right corner. But apparently it isn't really ending the program. If I return to VB and make changes then try to rebuild the app it says the...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
4
by: wesbland | last post by:
>From my understanding, when a string is stored in VB.NET and you look at it in the debugger, it has a quote on both sides to signify that it is a string as opposed to a char or int or whatever. ...
34
by: Umesh | last post by:
I want to extract a string abc*xyz from a text file. * indicates arbitrary no. of characters. I'm only able to do it when the string has definite no. of characters or the string length is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.