Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Skin unloads on UnloadAllForms Event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skin unloads on UnloadAllForms Event

 Post Reply Post Reply
Author
Message
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 Topic: Skin unloads on UnloadAllForms Event
    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.
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: 24 November 2006 at 4:13am
Hello,
 
To Fix what? You destroy form that has Skin Control and want Skin still be applied?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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 November 2006 at 6:41am
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

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: 24 November 2006 at 8:30am
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
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: 01 December 2006 at 8:46am
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.
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: 01 December 2006 at 8:57am
Hi,
only one SkinFramework control must exists.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 01 December 2006 at 9:13am
ok.

thanks
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.156 seconds.