Home All Groups Group Topic Archive Search About
Author
23 May 2006 9:35 PM
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

Author
23 May 2006 11:09 PM
aaron.kempf@gmail.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??
Author
24 May 2006 12:42 AM
J Ames
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??
>
Author
24 May 2006 5:43 PM
aaron.kempf@gmail.com
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
Author
24 May 2006 8:33 AM
Cor Ligthert [MVP]
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
>
>