<?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 Icon property</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : TrayIcon Icon property]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 13:51:10 +0000</pubDate>
  <lastBuildDate>Wed, 13 May 2009 17:01:37 +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=14289</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 Icon property : Thanks Aaron,  I was not using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48960&amp;title=trayicon-icon-property#48960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5235">MattM</a><br /><strong>Subject:</strong> 14289<br /><strong>Posted:</strong> 13 May 2009 at 5:01pm<br /><br />Thanks Aaron,<br /><br />I was not using the CreatePicture method.<br />This VBScript works fine.<br /><br />TrayIcon1.Text = "Desyntime 2.0"<br />CaptionImageManager1.Icons.LoadIcon "C:\DesynTimeUpdated\DesynTime\256.ico", 1, 0<br />Set TrayIcon1.Icon = CaptionImageManager1.Icons.GetImage(1, 16).CreatePicture(xtpImageNormal)<br />TrayIcon1.MinimizeToTray AD.Field("WindowL&lt;WindowHandle&gt;")<br />TrayIcon1.ShowBalloonTip 2, "Desyntime is still running", "Click the icon to show the window again", 1<br /><br />Matt]]>
   </description>
   <pubDate>Wed, 13 May 2009 17:01:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48960&amp;title=trayicon-icon-property#48960</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Icon property : Hi,  I tried the following options...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48958&amp;title=trayicon-icon-property#48958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14289<br /><strong>Posted:</strong> 13 May 2009 at 4:06pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I tried the following options and they all work OK:</DIV><DIV>&nbsp;</DIV><OL><LI>TrayIcon1.Icon = LoadPicture(App.Path &amp; "\Icons\Delete.ico")</LI><LI>TrayIcon1.Icon = ImageManager.Icons.GetImage(1, 16).CreatePicture(xtpImageNormal)</LI><LI>TrayIcon1.Icon = Me.Icon</LI><LI>TrayIcon1.Icon = PictureBox.Picture<BR>&nbsp;&nbsp;&nbsp; </LI></OL><DIV>Hope this helps <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 13 May 2009 16:06:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48958&amp;title=trayicon-icon-property#48958</guid>
  </item> 
  <item>
   <title><![CDATA[TrayIcon Icon property : I am using the TrayIcon control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48950&amp;title=trayicon-icon-property#48950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5235">MattM</a><br /><strong>Subject:</strong> 14289<br /><strong>Posted:</strong> 13 May 2009 at 12:17pm<br /><br />I am using the TrayIcon control with a development tool which uses VBScript to manipulate the properties on the panel.<br /><br />Refering to the documentation for the TrayIcon control I see that the Icon property expects a "Picture" object.  The code sample only demonstrates using the VB form's icon, but I want to set the icon as part of the application's configuration.<br /><br />I have tried using the VBScript LoadPicture function but get a type mismatch error.<br /><br />TrayIcon1.Icon = LoadPicture("C:\256.ico")<br /><br />I also tried using the image manager control without success.<br />Set MyPicture = CaptionImageManager1.Icons.GetImage(1,16)<br /><br />What type is the Icon property and how can I populate it on the fly from a file on disk?<br /><br /><br />thanks,<br /><br />matt]]>
   </description>
   <pubDate>Wed, 13 May 2009 12:17:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14289&amp;PID=48950&amp;title=trayicon-icon-property#48950</guid>
  </item> 
 </channel>
</rss>