Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - Unloading forms that are .hwnd
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unloading forms that are .hwnd

 Post Reply Post Reply
Author
Message
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Topic: Unloading forms that are .hwnd
    Posted: 27 July 2007 at 10:05am
Hi we are wondering if anyone has any solutions on how to ensure that when a form closes that all other forms that are .hwnd to that form will close down with out a problem. If there is a problem then all forms are not unloaded. Right now we have coded it that if there is a problem unloading with any of the forms that the unloading process will stop, just the forms already unloaded will not be shown making the form useless.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2007 at 7:59am

Am having the same problem big time esp. with forms with docking manager.

Would like to know the solution to this too.

Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2007 at 9:43am

Anyone from codejock shed some light on this.

Please!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2007 at 2:23pm
Hi,
 
if its main form add
 
Private Sub Form_Unload(Cancel As Integer)
    Dim i As Integer
  'close all sub forms
    For i = Forms.Count - 1 To 1 Step -1
        Unload Forms(i)
    Next
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.