<?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 : TaskDialog MainIconHandle</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : TaskDialog MainIconHandle]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 04:12:52 +0000</pubDate>
  <lastBuildDate>Tue, 03 Jun 2008 08:21:13 +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=9492</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[TaskDialog MainIconHandle : McKloony, I don&amp;#039;t know if...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=36194&amp;title=taskdialog-mainiconhandle#36194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1401">jpcoffeyXXX</a><br /><strong>Subject:</strong> 9492<br /><strong>Posted:</strong> 03 June 2008 at 8:21am<br /><br />McKloony, I don't know if 48 x 48 icons will work.&nbsp; Sorry.&nbsp; <br><br>If not, it would be a limitation of the TaskDialog, but probably by design.&nbsp; When CodeJock created the TD control, I am sure they built it within the design specs supplied by Microsoft.<br><br>Cheers,<br><br>John<br>]]>
   </description>
   <pubDate>Tue, 03 Jun 2008 08:21:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=36194&amp;title=taskdialog-mainiconhandle#36194</guid>
  </item> 
  <item>
   <title><![CDATA[TaskDialog MainIconHandle : Yes, this works great. Do you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=36191&amp;title=taskdialog-mainiconhandle#36191</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2660">McKloony</a><br /><strong>Subject:</strong> 9492<br /><strong>Posted:</strong> 03 June 2008 at 6:58am<br /><br />Yes, this works great. Do you know, if it is possible to set Icons bigger than 32 x 32? I tryed out with 48 x 48 icons and it was reduced to 32 x 32]]>
   </description>
   <pubDate>Tue, 03 Jun 2008 06:58:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=36191&amp;title=taskdialog-mainiconhandle#36191</guid>
  </item> 
  <item>
   <title><![CDATA[TaskDialog MainIconHandle : Aaron, thank you for the solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30819&amp;title=taskdialog-mainiconhandle#30819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1401">jpcoffeyXXX</a><br /><strong>Subject:</strong> 9492<br /><strong>Posted:</strong> 05 February 2008 at 8:33am<br /><br />Aaron, thank you for the solution.&nbsp; <br><br>A caveat to everyone who is trying to accomplish the same thing, you cannot use an icon with an alpha channel with the StdPicture object.&nbsp; Initially when I implemented the solution it didn't work.&nbsp; After removing the icon with the alpha channel from the ImageManager and substituting an icon with 256 colors it worked beautifully.&nbsp; The weak link here is the StdPicture object which does not support icons with alpha channels.&nbsp; Again, Aaron thanks for your help.<br><br>Sincerely,<br><br>John<br>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 08:33:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30819&amp;title=taskdialog-mainiconhandle#30819</guid>
  </item> 
  <item>
   <title><![CDATA[TaskDialog MainIconHandle : Hi,  Yes it&amp;#039;s a little...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30803&amp;title=taskdialog-mainiconhandle#30803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9492<br /><strong>Posted:</strong> 05 February 2008 at 3:06am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes it's a little strange that the control doesn't deliver the handle.</DIV><DIV>I also wanted to do simular what you wanted. This is what I found so far:</DIV><DIV>&nbsp;</DIV><DIV>Dim stdPic As StdPicture<BR>Set stdPic = ImageManager.Icons.GetImage(<FONT face="Courier New">ID_TASK_DIALOG_ICON</FONT>, 32).CreatePicture(xtpImageNormal)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With taskDialog<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MainInstructionText = "Some text...."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MainIconHandle = stdPic.Handle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MainIcon = xtpTaskIconCustom<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowDialog<BR>&nbsp;&nbsp;&nbsp; End With</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 05 Feb 2008 03:06:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30803&amp;title=taskdialog-mainiconhandle#30803</guid>
  </item> 
  <item>
   <title><![CDATA[TaskDialog MainIconHandle : I&amp;#039;m having a problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30785&amp;title=taskdialog-mainiconhandle#30785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1401">jpcoffeyXXX</a><br /><strong>Subject:</strong> 9492<br /><strong>Posted:</strong> 04 February 2008 at 4:48pm<br /><br />I'm having a problem with the TaskDialog MainIconHandle.&nbsp; I'm trying to assign a 32 pixel icon to the TaskDialog MainIcon and it will not show.&nbsp; While I can get the icon to show using the API method provided in the example, I cannot see why CodeJock's own control cannot deliver the handle.&nbsp; The code I am using is,<br><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Dim </font>imgIcon As ImageManagerIcon, lngIconHandle As Long<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <font color="#0000ff">Dim </font>td as TaskDialog<br></font><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <font color="#0000ff">Set </font>imgIcons = MyForm.cjImageManagerIcons<br>&nbsp;&nbsp;&nbsp; </font><font face="Courier New, Courier, mono"><font color="#0000ff">Set </font></font><font face="Courier New, Courier, mono">imgIcon = imgIcons.Icons.GetImage(ID_TASK_DIALOG_ICON, 32)<br>&nbsp;&nbsp;&nbsp; lngIconHandle = imgIcon.Handle<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; </font><font face="Courier New, Courier, mono"><font color="#0000ff">Set </font></font><font face="Courier New, Courier, mono">td = MyForm.cjTaskDialog<br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">With </font>td<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; .MainInstructionText = "CJ image handles do not work."<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MainIcon = xtpTaskIconCustom<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MainIconHandle = lngIconHandle<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowDialog<br>&nbsp; &nbsp;&nbsp;  <font color="#0000ff">end with</font><br><br>&nbsp;&nbsp;&nbsp; <font color="#0000ff">Set </font>td = Nothing<br></font><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; <font color="#0000ff">Set </font>imgIcon = Nothing: <font color="#0000ff">Set </font>imgIcons = Nothing<br></font><br><font face="Courier New, Courier, mono"><font face="Verdana, Arial, Helvetica, sans-serif">The only thing showing up on the TaskDialog is the MainInstructionText.&nbsp; The image in the ImageManagerIcons is an XP icon with multiple sizes.&nbsp; Is there something I'm missing?&nbsp; Thanks for your help.<br><br>Sincerely,<br><br>John<br></font>&nbsp;&nbsp;&nbsp; </font><br><br>]]>
   </description>
   <pubDate>Mon, 04 Feb 2008 16:48:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9492&amp;PID=30785&amp;title=taskdialog-mainiconhandle#30785</guid>
  </item> 
 </channel>
</rss>