application.exit( )

  • Thread starter Thread starter J Ames
  • Start date Start date
J

J Ames

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
 
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??
 
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
 
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
 
Back
Top