Print Page | Close Window

Can't skin popup forms in .NET

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=11057
Printed Date: 29 April 2024 at 4:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can't skin popup forms in .NET
Posted By: YellowStreak
Subject: Can't skin popup forms in .NET
Date 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,



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