Skin unloads on UnloadAllForms Event |
Post Reply |
Author | |
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Posted: 23 November 2006 at 10:31am |
Hi,
I am using an event to unload all the forms in an mdimain:
Public Sub UnloadAllForms()
Dim Frm as Forms
For Each Frm in Forms
Unload Frm
Set Frm = Nothing
Next Frm
End Sub
When this code is triggered on an MDI Form that has skin control applied with one of the skin styles, it unloads the skin leaving the default windows theme. Is there a possible fix for this?
Thanks.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
To Fix what? You destroy form that has Skin Control and want Skin still be applied?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
Sorry, gave the wrong code. This is how i have it. MDIMain is the form that has the skinframwork control.
Dim Form As Form For Each Form In Forms If Form.Name <> "MDIMain" Then Unload Form Set Form = Nothing Next Form |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, I inserted such code in our sample, added SKinFramework and all work right. Check that only MDIMain has SkinFramework object and it doesn't destroyed in this call.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
Hi oleg,
I figured out where my scenario differs: I have a seperate independent form that has a skin control which in turn calls the MDI form and unloads completely from memory using code(set frm = nothing) When i run the unloadAllForms event, it unloads the skin, so is it that i shouldt use two skinframeworks in a project? I tried the same with The MDISample: -I added a form and a button with the skin control. -The button calls the mdi form and unloads -I call UnloadAllForms. -The skin unloads and leaves the default windows theme Thanks. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
only one SkinFramework control must exists.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
joeliner
Senior Member Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
|
ok.
thanks |
|
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 |