> So
> Does it mean that once all the forms are unloaded, and
[quoted text clipped - 5 lines]
> Thanx
> Barbara
There's no reason to use End... in fact, get rid of it because it may be
causing you problems. Think of End stopping your program being equal to
turning of a TV by yanking its plug out of the wall (I'd say "record
player", but, these days, people would say "what's a record?" or "what's a
record player?" <g>)
To answer the initial question though, Yes.... a VB program "dies" on its
own when all objects are released, all forms are unloaded and it runs the
final 'End Sub' in your app.
A quick demo of that needs a new EXE project with a single command button.
'===========
Option Explicit
Private Sub Command1_Click()
Unload Me 'place a breakpoint here and use F8 to single step.
End Sub 'Program dies after running this line
'===========

Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Barbara - 25 Jan 2005 20:58 GMT
Sorry to bug you so much, but I really want ot understand
what is going on.
When my program ends, what I am left with is is an empty
UserDocument.vbd open in Microsoft Internet Explorer (the
pick that was displayed is no longer there). So this
Microsoft Internet Explorer window is part of the VB
application?
When I look under Windows Task Manager everything is
closed except IE, and that is what confuses me.
>-----Original Message-----
>> So
[quoted text clipped - 25 lines]
>End Sub 'Program dies after running this line
>'===========