<?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 : Menu in System Tray</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Menu in System Tray]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 19:15:09 +0000</pubDate>
  <lastBuildDate>Mon, 14 May 2007 14:27:52 +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=7079</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[Menu in System Tray : Hi Majek, I ran into this problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7079&amp;PID=22856&amp;title=menu-in-system-tray#22856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 7079<br /><strong>Posted:</strong> 14 May 2007 at 2:27pm<br /><br />Hi Majek,<br><br>&nbsp;&nbsp;&nbsp; I ran into this problem on my SysTray project that wasn't using CodeJock controls, so I believe it is a VB problem. My solution is to call the SetForegroundWindow API immediately before showing the popup menu:<br><br><br>In your declarations:<br><br>&nbsp;&nbsp;&nbsp; Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long<br><br>Then in your sub:<br><br>&nbsp;&nbsp;&nbsp; SetForegroundWindow Me.hwnd<br>&nbsp;&nbsp;&nbsp; PopupMenu Me.mnuPopup<br><br>]]>
   </description>
   <pubDate>Mon, 14 May 2007 14:27:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7079&amp;PID=22856&amp;title=menu-in-system-tray#22856</guid>
  </item> 
  <item>
   <title><![CDATA[Menu in System Tray : Hi, I&amp;#039;m using CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7079&amp;PID=22678&amp;title=menu-in-system-tray#22678</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2525">Majek</a><br /><strong>Subject:</strong> 7079<br /><strong>Posted:</strong> 08 May 2007 at 9:40am<br /><br />Hi, I'm using CommandBars to display a popup menu in the system tray when the user right-clicks&nbsp;a NotifyIcon. Everything works great except when the menu is open, and you click somewhere on the screen the menu doesn't go away when it loses focus. Is there an event that is raised when the popup menu loses focus? I want to hide the popup menu when the user clicks somewhere on the screen so it acts&nbsp;as a normal tray menu. I'm using VB 2005&nbsp;and CommandBars 10.1.]]>
   </description>
   <pubDate>Tue, 08 May 2007 09:40:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7079&amp;PID=22678&amp;title=menu-in-system-tray#22678</guid>
  </item> 
 </channel>
</rss>