|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
application.exit( )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?? Nothing like a definitive answer ;-). No, I'm a Java developer dabbling in
VB. <aaron.ke***@gmail.com> wrote in message Show quoteHide quote news:1148425771.160845.323120@i39g2000cwa.googlegroups.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?? > 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 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 Show quoteHide quote "J Ames" <j_ames2***@yahoo.com> schreef in bericht news:OK0YJDrfGHA.2188@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 > > |
|||||||||||||||||||||||