<?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 : TrayIcon MouseDown bug!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : TrayIcon MouseDown bug!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 00:45:30 +0000</pubDate>
  <lastBuildDate>Thu, 13 Mar 2008 11:10:30 +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=9847</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[TrayIcon MouseDown bug! : It might not officially be a bug,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32224&amp;title=trayicon-mousedown-bug#32224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 13 March 2008 at 11:10am<br /><br />It might not officially be a bug, but it is definitely different behaviour from the behaviour of every other ActiveX control I have used. Click always gets fired after the user releases the mouse button, not before MouseDown. <br><br>The MSDN documentation for the click event also mentions this:<br><br><div ="title">Visual Basic Reference</div><!--C&#111;ntent : . Trans: vs62mtps.xslt.--> <div style="display: n&#111;ne;"><!----></div>  <h1><a name="vbevtclick"><!----></a>Click Event</h1>  <p>Occurswhen the user presses and then releases a mouse button over an object.It can also occur when the value of a control is changed.</p><br><p>It's not that big a deal, it just wastes time trying to figure out what is wrong when you expect a certain behaviour based on the way just about every other control behaves.</p><br><p><br></p><p>There is also a better reason why this is a problem. On most controls (for example, the PictureBox control) if the user presses the mouse button down while the mouse pointer is over the control and then changes his mind and moves the mouse off of the control and releases the mouse button, only the MouseDown and MouseUp events fire. Therefore, you can place code in the Click event and it will only execute if the user presses and then releases the mouse button while over the control.</p><p>With the TrayIcon, you can't put code in the Click event (because it fires before MouseDown) and if you put it in MouseUp you will have to perform additionaly checks to make sure that the mouse button was released while the mouse pointer was actually over the TrayIcon control.<br></p>]]>
   </description>
   <pubDate>Thu, 13 Mar 2008 11:10:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32224&amp;title=trayicon-mousedown-bug#32224</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : its not bug. There is no official...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32220&amp;title=trayicon-mousedown-bug#32220</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 13 March 2008 at 10:50am<br /><br />its not bug. There is no official document that describes order of these events. Why you can't just&nbsp; use MouseUp instead Click ???]]>
   </description>
   <pubDate>Thu, 13 Mar 2008 10:50:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32220&amp;title=trayicon-mousedown-bug#32220</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : So this is a bug in the OS? Because...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32192&amp;title=trayicon-mousedown-bug#32192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 12 March 2008 at 9:28am<br /><br />So this is a bug in the OS? Because all other controls fire MouseDown, MouseUp, Click...but the TrayIcon fires Click, MouseDown, MouseUp. This means that click is firing before the mouse events (i.e. before the TrayIcon has been clicked!).&nbsp;]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 09:28:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32192&amp;title=trayicon-mousedown-bug#32192</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : No. These messages comes from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32173&amp;title=trayicon-mousedown-bug#32173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 12 March 2008 at 2:16am<br /><br />No. These messages comes from OS system tray and we can't change them.]]>
   </description>
   <pubDate>Wed, 12 Mar 2008 02:16:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32173&amp;title=trayicon-mousedown-bug#32173</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : Hi Oleg, Any idea if this:http...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32144&amp;title=trayicon-mousedown-bug#32144</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 11 March 2008 at 10:23am<br /><br />Hi Oleg,<br><br>&nbsp;&nbsp;&nbsp; Any idea if this:<br><br>https://forum.codejock.com/forum_posts.asp?TID=9358<br><br>&nbsp;&nbsp;&nbsp; Will be fixed? (Event sequence for Click, MouseDown, MouseUp out of order)?<br><br>Thanks.<br><br>]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 10:23:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32144&amp;title=trayicon-mousedown-bug#32144</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : Thanks, Fixed. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32135&amp;title=trayicon-mousedown-bug#32135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 11 March 2008 at 6:59am<br /><br />Thanks, Fixed.]]>
   </description>
   <pubDate>Tue, 11 Mar 2008 06:59:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32135&amp;title=trayicon-mousedown-bug#32135</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon MouseDown bug! : I am trying to use the MouseDown...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32113&amp;title=trayicon-mousedown-bug#32113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 9847<br /><strong>Posted:</strong> 10 March 2008 at 7:41pm<br /><br />I am trying to use the MouseDown event on the tray icon to determine when to hide/restore the main window (left button click) vs. when to display a popup menu (right button click).&nbsp; What I discovered was that in the MouseDown event, every button click shows up as a right button click.<br><br>For example, add the following to the suite controls sample application:<br><br>Private Sub TrayIcon_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)<br>&nbsp;&nbsp;&nbsp; MsgBox Button<br>End Sub<br><br>The number "2" will pop up for both a right and left mouse click.&nbsp; A left mouse click should show up as "1".&nbsp; <br><br>The MouseUp event does seem to work correctly but I'm not sure I want to use that event.&nbsp; A Click event doesn't distinguish between buttons so that won't work for me.<br>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 19:41:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9847&amp;PID=32113&amp;title=trayicon-mousedown-bug#32113</guid>
  </item> 
 </channel>
</rss>