MSForms in VB6.0 Project - Cannot Quit
- From: Gman <nah>
- Date: Mon, 14 Nov 2005 19:30:01 -0600
Hi,
I have a application developed in VB6.0 that incorporates some MSForms (originally created in Excel) - they appear as ActiveX Designers in Project Explorer. I have suddenly noticed that if I shutdown or logoff my Windows session (both XP and win2K) the application will not close. I get a simple message "Cannot quit" from Windows and the shutdown aborts.
In order to eliminate whether or not it's my application that's at fault I recreated the problem in a very simple app:
Form1 | --- CommandButton1 - launches UserForm1 | - UserForm1 loads and updates its Label1.
That's it - there's nothing else going on and I get the same problem as
with my original app. Note that if Userform1 isn't active there's no problem.
So, it's as if the application isn't being notified by explorer (or it doesn't understand) when the active form is an MSForm rather than a VB form. (I've filled every event: Terminate, Close, QueryClose with MsgBoxes to see if they fire but none of them do.)
I've seen this reported elsewhere but no one had a solution. Has anyone here come across this and, more importantly, resolved it.
Thanks, Gman .
- Follow-Ups:
- Re: MSForms in VB6.0 Project - Cannot Quit
- From: NickHK
- Re: MSForms in VB6.0 Project - Cannot Quit
- Prev by Date: Re: evaluating simple mathematical expressions
- Next by Date: Re: How to pass a 2-D array into a function?
- Previous by thread: Re: Menus always need resetting
- Next by thread: Re: MSForms in VB6.0 Project - Cannot Quit
- Index(es):