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

application.exit( )

P: n/a
I have a VB.NET 2005 app I'm developing. I've created a mail class library
and I'm making a reference to it in my code. All of that works fine. The
object is called when a certain condition is met in the code, and after
calling that method I want the app to terminate. So...I figured Me.Close
and Application.Exit would do the trick. However, these lines are just
ignored! In debugger it appears as though they are executed, but the
debugger just continues on to the following lines like they were never
there. What the heck??? Any ideas? This is a Windows application, not an
ASP.NET app, if that helps. Any advice is greatly appreciated.

Thanks,
J
May 23 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
i believe that you need to set frmMain = nothing or something along
those lines

that worked for me.

are you an access developer; new to the vs world??

May 23 '06 #2

P: n/a
Nothing like a definitive answer ;-). No, I'm a Java developer dabbling in
VB.

<aa*********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
i believe that you need to set frmMain = nothing or something along
those lines

that worked for me.

are you an access developer; new to the vs world??

May 24 '06 #3

P: n/a
J Ames,

It depends if you start your application with a Sub Main in a seperated
module or class or that you use the standard mainform method as is mostly in
examples.

In the first you have to exit the program in the sub main with your
application.exit

In the second is me.close enough

I hope this helps,

Cor

"J Ames" <j_********@yahoo.com> schreef in bericht
news:OK**************@TK2MSFTNGP04.phx.gbl...
I have a VB.NET 2005 app I'm developing. I've created a mail class library
and I'm making a reference to it in my code. All of that works fine. The
object is called when a certain condition is met in the code, and after
calling that method I want the app to terminate. So...I figured Me.Close
and Application.Exit would do the trick. However, these lines are just
ignored! In debugger it appears as though they are executed, but the
debugger just continues on to the following lines like they were never
there. What the heck??? Any ideas? This is a Windows application, not an
ASP.NET app, if that helps. Any advice is greatly appreciated.

Thanks,
J

May 24 '06 #4

P: n/a
congrats!!
i wish i could be more help; i've been working with vba for 10 years;
vbs-- i just haven't done too much with real vb forms; etc

May 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.