![]() |
Unloading forms that are .hwnd |
Post Reply
|
| Author | |
LittleJK
Senior Member
Joined: 13 April 2006 Status: Offline Points: 168 |
Post Options
Thanks(0)
Quote Reply
Topic: Unloading forms that are .hwndPosted: 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.
|
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2007 at 9:43am |
|
Anyone from codejock shed some light on this. Please! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |