Print Page | Close Window

Unloading forms that are .hwnd

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=7678
Printed Date: 22 November 2024 at 12:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Unloading forms that are .hwnd
Posted By: LittleJK
Subject: Unloading forms that are .hwnd
Date 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.



Replies:
Posted By: joeliner
Date 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.



Posted By: joeliner
Date Posted: 03 October 2007 at 9:43am

Anyone from codejock shed some light on this.

Please!



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net