Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Can't skin popup forms in .NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't skin popup forms in .NET

 Post Reply Post Reply
Author
Message
YellowStreak View Drop Down
Groupie
Groupie


Joined: 07 April 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote YellowStreak Quote  Post ReplyReply Direct Link To This Post Topic: Can't skin popup forms in .NET
    Posted: 16 June 2008 at 10:39am
I am working on a .NET interop user control.  To apply skinning I have created a shared form (frmStyles) that contains an instance of the skin control.  It also has an initialise method that sets up the selected skin passed through from our VB6 app.  Each user control declares a shared variable as an instance of this form and has a setTheme method that applies the theming.  Like this:
 
If _frmStyles Is Nothing Then

_frmStyles = New frmInteropStyles

End If

_frmStyles.Initialize(sSkinStyle, bSkinON)

 _frmStyles.SkinFramework.ApplyWindow(Me.Handle.ToInt32)

_frmStyles.Visible = False

This is all working fine.  The problem occurs when I try to pop up a modal form from the user control.  I use the following code:
 

Dim frm As New frmMyModalPopUpForm

_frmStyles.SkinFramework.ApplyWindow(frm.Handle.ToInt32)

frm.showdialog()
 
The form is displayed with only the form caption bar skinned.  All the controls remain unskinned.
 
Can anyone explain what I might be doing wrong?
 
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.157 seconds.