|
-
May 13th, 2003, 03:48 AM
#1
Thread Starter
Lively Member
Form Close
My application shows another form (FormB) with "Modal " by selecting a menu option in main form (FormA).
In Form B, is that any event (preferably single event) that can catch the following sitatuion:
- form close by pressing a command button with FormB.unload;
- form close by pressing the cross at right top corner.
I can catch the command button close event but not the later and I prefer a single event to catch both of them so that I can update the status value in FormA.
Thank you.
-
May 13th, 2003, 03:55 AM
#2
Fanatic Member
Use the Form_Unload or Form_QueryUnload events.
Author for Visual Basic Web Magazine
-
May 13th, 2003, 08:27 AM
#3
Thread Starter
Lively Member
Thanks for your advice. It does work if my Visual C DLL has not been called.
My Visual C 6.0 DLL program receive control from a VB (Form B) and the VC update the status bar of VB main form (which call Form B) directly by the following:
SendMessage(h.hwndSB, SB_SETTEXT, SBITEM_STATUS,(LPARAM)"File erase in progress ...");
Before calling this statement, my VB program can update that status bar message content freely. It is strange that my VB program cannot update that status bar message content anymore. Is there is rescue?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|