<?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 : Remove focus rect from button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Remove focus rect from button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 00:43:13 +0000</pubDate>
  <lastBuildDate>Mon, 31 Mar 2008 01:20:50 +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=9712</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[Remove focus rect from button : Hi,  DrawFocusRect property...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32836&amp;title=remove-focus-rect-from-button#32836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 31 March 2008 at 1:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>DrawFocusRect property added for 12.0 release</DIV>]]>
   </description>
   <pubDate>Mon, 31 Mar 2008 01:20:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32836&amp;title=remove-focus-rect-from-button#32836</guid>
  </item> 
  <item>
   <title><![CDATA[Remove focus rect from button : @corporn no this is no solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32800&amp;title=remove-focus-rect-from-button#32800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 29 March 2008 at 1:52pm<br /><br />@corporn<DIV>no this is no solution it is only a workaround.</DIV><DIV>&nbsp;</DIV><DIV>Because I can't use taborders for my customers. If the user press &lt;Tab&gt; to jump to the next control on form he'll always jump to a special control (what ever one). This "solution" I used before some years - and it is realy bad - the result is a uncontrolled GUI and much more code (U must check if the destination-control is enabled OR U must use "On Error Resume Next" *uaaaa*)</DIV><DIV>&nbsp;</DIV><DIV>And by the way: nighthawk's "solution" works only, if the user "Click" the button!!! If the user focus the button on another way (like TAB-press) U need&nbsp;code for&nbsp;"On_Focus Event" too!!!</DIV>]]>
   </description>
   <pubDate>Sat, 29 Mar 2008 13:52:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32800&amp;title=remove-focus-rect-from-button#32800</guid>
  </item> 
  <item>
   <title><![CDATA[Remove focus rect from button : nighthawk&amp;#039;s solution is simple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32799&amp;title=remove-focus-rect-from-button#32799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3113">corpcon</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 29 March 2008 at 1:43pm<br /><br />nighthawk's solution is simple and is what has been used by developers for more than the past decade.]]>
   </description>
   <pubDate>Sat, 29 Mar 2008 13:43:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32799&amp;title=remove-focus-rect-from-button#32799</guid>
  </item> 
  <item>
   <title><![CDATA[Remove focus rect from button : @Codejock-team Is there a &amp;#0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32797&amp;title=remove-focus-rect-from-button#32797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 29 March 2008 at 12:14pm<br /><br /><DIV>@Codejock-team</DIV><DIV>Is there a "DrawFocusRect"-Property in the next release?</DIV><DIV>&nbsp;</DIV><DIV>Because I've the same problem and the focus rectangle is realy nasty!</DIV>]]>
   </description>
   <pubDate>Sat, 29 Mar 2008 12:14:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=32797&amp;title=remove-focus-rect-from-button#32797</guid>
  </item> 
  <item>
   <title><![CDATA[Remove focus rect from button : I&amp;#039;ve ran into the same situation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=31821&amp;title=remove-focus-rect-from-button#31821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 02 March 2008 at 7:21am<br /><br />I've ran into the same situation with other controls where I don't want it to show a focus rectangle.&nbsp; My solution is to manually move the focus to another control.&nbsp; So, at the end of the click event, have a line such as:<br><br>Button1.SetFocus<br><br>You can send the focus to any control that has a "SetFocus" method.&nbsp; If there aren't any that you want to get focus, create one and move it off-screen so it is never seen.&nbsp; I don't think it would work to set it to be invisible because I seem to recall that you can't give focus to an invisible control.<br>]]>
   </description>
   <pubDate>Sun, 02 Mar 2008 07:21:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=31821&amp;title=remove-focus-rect-from-button#31821</guid>
  </item> 
  <item>
   <title><![CDATA[Remove focus rect from button : Is it possible to remove the focus...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=31635&amp;title=remove-focus-rect-from-button#31635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3745">JantjeKeizer</a><br /><strong>Subject:</strong> 9712<br /><strong>Posted:</strong> 27 February 2008 at 5:26am<br /><br />Is it possible to remove the focus rect from a pushbutton?<br />We have an application that uses some small flatstyle buttons with just a 16 pixel image inside.<br />When the button gains focus, the rectangle is drawn inside the small button temporarily 'destroying' the image.<br /><br />I've tried to subclass the button to eat the WM_SETFOCUS message. Whilst this works for vb6's native commandbutton, it doesn't seem to be working on the pushbutton.]]>
   </description>
   <pubDate>Wed, 27 Feb 2008 05:26:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9712&amp;PID=31635&amp;title=remove-focus-rect-from-button#31635</guid>
  </item> 
 </channel>
</rss>