<?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 : Transparent UserControl Redraw Bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Transparent UserControl Redraw Bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 10:01:36 +0000</pubDate>
  <lastBuildDate>Wed, 18 Jun 2008 19:58:11 +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=10764</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[Transparent UserControl Redraw Bug : Hi Chris,This is the same approach...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=36954&amp;title=transparent-usercontrol-redraw-bug#36954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 18 June 2008 at 7:58pm<br /><br />Hi Chris,<br><br>This is the same approach I ended up taking...in my case it is okay because I'm not placing the control on a gradient background (although that was the type of situation that I wanted to have transparency available for). I guess we're stuck with it!<br>]]>
   </description>
   <pubDate>Wed, 18 Jun 2008 19:58:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=36954&amp;title=transparent-usercontrol-redraw-bug#36954</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug :    jpbro wrote:Hi Aaron,Basically,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=36944&amp;title=transparent-usercontrol-redraw-bug#36944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 18 June 2008 at 2:34pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br />Hi Aaron,<br><br>Basically, I am creating my own Label &amp; FlatEdit control combination for use in my projects so that I don't have to add one of each every time (and I get a consistent look, spacing, size, etc...).<br></td></tr></table><br><br>I did this. (and I bet every other developer has also done it<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle">)<br><br>And I found that the standard VB label placed in a User Control loses its transparency. And this is a known "problem".<br><br>My solution was horrible.&nbsp; I look at the screen color when the User Control is drawn and the&nbsp; set the label background color to match.&nbsp; Doesn't work for gradient backgrounds.... but in real life it is hardly noticeable.<img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" align="absmiddle">&nbsp;&nbsp;&nbsp;&nbsp; When I get time I will do it better (or maybe CodeJock will bring out a Control....?)<br>]]>
   </description>
   <pubDate>Wed, 18 Jun 2008 14:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=36944&amp;title=transparent-usercontrol-redraw-bug#36944</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Hi,  That&amp;#039;s good news If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35900&amp;title=transparent-usercontrol-redraw-bug#35900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 28 May 2008 at 2:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>That's good news <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;If you use a picturebox (in the usercontrol) and add the CJ label&nbsp;to the picturebox, the&nbsp;label does repaint correct&nbsp;(system menu issue you described)&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 28 May 2008 02:49:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35900&amp;title=transparent-usercontrol-redraw-bug#35900</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Hi Aaron,I don&amp;#039;t desperately...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35870&amp;title=transparent-usercontrol-redraw-bug#35870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 27 May 2008 at 11:04am<br /><br />Hi Aaron,<br><br>I don't desperately need transparency on the usercontrol, I just thought it could be useful in the future. Basically, I am creating my own Label &amp; FlatEdit control combination for use in my projects so that I don't have to add one of each every time (and I get a consistent look, spacing, size, etc...). So the windowless workaround won't work in this case.<br><br>The good news, I don't need transparency at this point as I have always been adding my usercontrol to a form with the same background colour as the usercontrol...Thanks for working on the problem!<br>]]>
   </description>
   <pubDate>Tue, 27 May 2008 11:04:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35870&amp;title=transparent-usercontrol-redraw-bug#35870</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Oleg,  I spoke with Bill yesterday...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35825&amp;title=transparent-usercontrol-redraw-bug#35825</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 27 May 2008 at 12:33am<br /><br /><DIV>Oleg,</DIV><DIV>&nbsp;</DIV><DIV>I spoke with Bill yesterday and they&nbsp;aren't going to solve this bug <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>Well, now it all depends on CodeJock if this issue is going to be solved.</DIV><DIV>&nbsp;</DIV><DIV>First of all: why does the CJ label looses transparency if put in a usercontrol?</DIV><UL><LI>A&nbsp;&nbsp;&nbsp; Don't know</LI><LI>B&nbsp;&nbsp;&nbsp; VB / usercontrol thing</LI><LI>C&nbsp;&nbsp;&nbsp; Because......</LI></UL><DIV>Jason,</DIV><DIV>I don't know if you <strong>need</strong> the transparency (like in your sample) with a usercontrol and label. The only thing that is working is setting the usercontrol property&nbsp;Windowless to true. In this case the CJ and MS label will be visible / transparent and CJ label will be repainted properly when the system menu is shown. <strong>Note:&nbsp;When you have a windowless usercontrol you can not place controls&nbsp;in it.</strong>&nbsp;Hope this will work out for you, but then again we have CJ to back us up <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 27 May 2008 00:33:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35825&amp;title=transparent-usercontrol-redraw-bug#35825</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug :   oleg wrote:Hi,   Yes, VB...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35757&amp;title=transparent-usercontrol-redraw-bug#35757</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 25 May 2008 at 12:17am<br /><br /><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi, </DIV><DIV>&nbsp;</DIV><DIV>Yes, VB don't allow it.&nbsp; Add standard label...</DIV><DIV></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV>Hi, </DIV><DIV>&nbsp;</DIV><DIV>MS don't allow it. Add no label at all...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 25 May 2008 00:17:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35757&amp;title=transparent-usercontrol-redraw-bug#35757</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Hi,  Yes, VB don&amp;#039;t allow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35754&amp;title=transparent-usercontrol-redraw-bug#35754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 24 May 2008 at 1:30pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, VB don't allow it.&nbsp; Add standard label...</DIV>]]>
   </description>
   <pubDate>Sat, 24 May 2008 13:30:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35754&amp;title=transparent-usercontrol-redraw-bug#35754</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Hi Aaron,I&amp;#039;ve attached a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35751&amp;title=transparent-usercontrol-redraw-bug#35751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 24 May 2008 at 11:52am<br /><br />Hi Aaron,<br><br>I've attached a sample project (you may have to change the path to the skin, depending on where you installed your CJ components). Also, if you are using Vista, it seems the bug only occurs when desktop composition is turned off (after compiling the project, right click the EXE and click Properties. Click the Compatibility tab, and select the "Disable Desktop Composition" check box, then click OK and run the app).<br><br><br>I've also noticed another problem (as demonstrated by the Line control on the form) - The CJ Label seems to ignore the Transparent property when it is placed on a Transparent BackStyle UserControl.<br><br><a href="uploads/20080524_115205_TransparentBug.zip" target="_blank">uploads/20080524_115205_TransparentBug.zip</a><br><br><br>]]>
   </description>
   <pubDate>Sat, 24 May 2008 11:52:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35751&amp;title=transparent-usercontrol-redraw-bug#35751</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : Hi,  I wouldn&amp;#039;t mind taking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35745&amp;title=transparent-usercontrol-redraw-bug#35745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 24 May 2008 at 6:42am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I wouldn't mind taking a look&nbsp;at it, but if I have to do all that and maybe have different settings that would influence the behaviour, it would be better if you upload a sample project.</DIV>]]>
   </description>
   <pubDate>Sat, 24 May 2008 06:42:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35745&amp;title=transparent-usercontrol-redraw-bug#35745</guid>
  </item> 
  <item>
   <title><![CDATA[Transparent UserControl Redraw Bug : It only seems to be a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35743&amp;title=transparent-usercontrol-redraw-bug#35743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10764<br /><strong>Posted:</strong> 24 May 2008 at 12:01am<br /><br />It only seems to be a problem (in Vista at least) if you turn of Desktop Composition for the compiled application (Properties &gt; Compatibility tab &gt; Disable Desktop Composition).]]>
   </description>
   <pubDate>Sat, 24 May 2008 00:01:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10764&amp;PID=35743&amp;title=transparent-usercontrol-redraw-bug#35743</guid>
  </item> 
 </channel>
</rss>