<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Can&#039;t skin popup forms in .NET</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Can&#039;t skin popup forms in .NET]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 22:03:38 +0000</pubDate>
  <lastBuildDate>Mon, 16 Jun 2008 10:39:56 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=11057</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Can&#039;t skin popup forms in .NET : I am working on a .NET interop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11057&amp;PID=36795&amp;title=cant-skin-popup-forms-in-net#36795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4064">YellowStreak</a><br /><strong>Subject:</strong> 11057<br /><strong>Posted:</strong> 16 June 2008 at 10:39am<br /><br />I am working on a .NET interop user control.&nbsp; To apply skinning I have created a shared form (frmStyles) that contains an instance of the skin control.&nbsp; It also has an initialise method that sets up the&nbsp;selected skin passed through from our VB6 app.&nbsp;&nbsp;Each user control declares a shared variable as an instance of this form and has a setTheme method that applies the theming.&nbsp; Like this:<DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>If</FONT></FONT><FONT size=2> _frmStyles </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Is</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Nothing</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Then</DIV><DIV></FONT></FONT><FONT size=2><P>_frmStyles = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> frmInteropStyles</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>End</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>If</P></FONT></FONT><FONT size=2><P>_frmStyles.Initialize(sSkinStyle, bSkinON)</P><P>&nbsp;</FONT><FONT size=2>_frmStyles.SkinFramework.ApplyWindow(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Me</FONT></FONT><FONT size=2>.Handle.ToInt32)</P><P>_frmStyles.Visible = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>False</P></FONT></FONT><DIV>This is all working fine.&nbsp; The problem occurs when I try to pop up a modal form from the user control.&nbsp; I use the following code:</DIV><DIV>&nbsp;</DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>Dim</FONT></FONT><FONT size=2> frm </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> frmMyModalPopUpForm</P><DIV></DIV><FONT size=2><P>_frmStyles.SkinFramework.ApplyWindow(frm.Handle.ToInt32)</P><DIV>frm.showdialog()</DIV><DIV>&nbsp;</DIV><DIV>The form is displayed with only the form caption bar skinned.&nbsp; All the controls remain unskinned.</DIV><DIV>&nbsp;</DIV><DIV>Can anyone explain what I might be doing wrong?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</FONT></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 16 Jun 2008 10:39:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11057&amp;PID=36795&amp;title=cant-skin-popup-forms-in-net#36795</guid>
  </item> 
 </channel>
</rss>