<?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 : (WORKAROUND) Task Dialog with ImageManager</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : (WORKAROUND) Task Dialog with ImageManager]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 09:55:27 +0000</pubDate>
  <lastBuildDate>Thu, 19 Feb 2009 03:47:44 +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=13419</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[(WORKAROUND) Task Dialog with ImageManager :    Aaron wrote:(Chris said)??...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45621&amp;title=workaround-task-dialog-with-imagemanager#45621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 19 February 2009 at 3:47am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />(Chris said)<br>?? I do not understand why my<br>&nbsp; <strong>TaskDialog.MainIconHandle = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal).Handle<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; does not work&nbsp; (ie. without going through the intermediate Object)</strong>.<div><font color="#0000ff">&nbsp;&nbsp; <br>&nbsp;&nbsp; <br><br><font color="#000000">&nbsp;&nbsp;&nbsp; .Handle returns the </font><font color="#000000">BitmapHandle and will be always the same.</font></font><font color="#0000ff"><font color="#000000">&nbsp;&nbsp;</font></font></div><div>&nbsp;</div></td></tr></table><br><br>But in the above I am getting Handle of&nbsp;&nbsp; <font color="#ff0000">GetImage.CreatePicture</font>&nbsp;&nbsp;&nbsp; which is just a single image, so I would have thought it would be OK. But it doesn't work.&nbsp; However, if I assign&nbsp;&nbsp;&nbsp; <font color="#cc0000">GetImage.CreatePicture</font>&nbsp; to an Object, and then use Handle of the Object, it works fine.<br><br>Anyway it works, so I will not worry.<br>All the images I have been using are 32bit alpha.<br>Thanks again for your help.<br>]]>
   </description>
   <pubDate>Thu, 19 Feb 2009 03:47:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45621&amp;title=workaround-task-dialog-with-imagemanager#45621</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager :   chrisABC wrote:Thanks Aaron,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45567&amp;title=workaround-task-dialog-with-imagemanager#45567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 17 February 2009 at 12:03pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by chrisABC" alt="Originally posted by chrisABC" style="vertical-align: text-bottom;" /> <strong>chrisABC wrote:</strong><br /><br />Thanks Aaron, that works fine.<BR><BR>I had previously tried dropping a PictureBox on the form and using:<BR>&nbsp;&nbsp; Set Picture1.Picture = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal)<BR>&nbsp;&nbsp; TaskDialog.MainIconHandle = Picture1.<strong>Image</strong>.Handle<BR><BR><BR>?? I do not understand why my<BR>&nbsp; <strong>TaskDialog.MainIconHandle = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal).Handle<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; does not work&nbsp; (ie. without going through the intermediate Object)</strong>.<BR><BR></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Chris,</DIV><DIV>&nbsp;</DIV><OL><LI>You have to replace <strong>Image</strong> with <strong>Picture</strong></LI><LI>Oleg said and I quote<strong>: </strong><DIV><FONT color=#0000ff>"As we wrote in release notes for 11.2.1, ImageManager now have only <strong>2 <SPAN =highlight>GDI</SPAN> Bitmaps</strong> that contains all icons<strong>.</strong> So developers can have 1000 icons in single image manager and don't worry about <SPAN =highlight>GDI</SPAN> objects number<strong>. So now Handle return common bitmap handle :( "</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#000000>So .Handle returns the </FONT><FONT color=#000000>BitmapHandle and will be always the same.</FONT></FONT><FONT color=#0000ff><FONT color=#000000>&nbsp;&nbsp;</FONT></FONT></DIV></LI></OL><DIV>&nbsp;</DIV><DIV>btw. Did you test it (what I previous wrote) with alpha images?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 17 Feb 2009 12:03:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45567&amp;title=workaround-task-dialog-with-imagemanager#45567</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager : Hi Chris,  I believe you can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45518&amp;title=workaround-task-dialog-with-imagemanager#45518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 10:16am<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>I believe you can't assign&nbsp;images larger than 32x32.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 10:16:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45518&amp;title=workaround-task-dialog-with-imagemanager#45518</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager : Hi Chris,  ImageManager contains...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45517&amp;title=workaround-task-dialog-with-imagemanager#45517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 10:07am<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>ImageManager contains only <strong>ONE</strong> Bitmap and that's why it returns always same handle.&nbsp;There's a post somewhere in CJ forum about this...</DIV><DIV>&nbsp;</DIV><DIV>Well, it works for you (and me)&nbsp; <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 10:07:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45517&amp;title=workaround-task-dialog-with-imagemanager#45517</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager : Additional Question.It looks as...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45516&amp;title=workaround-task-dialog-with-imagemanager#45516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 10:03am<br /><br />Additional Question.<br><br>It looks as if the TaskDialog always resizes the icon to a fixed size. I don't suppose there is any way to have larger icons displayed.....?<br><br>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 10:03:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45516&amp;title=workaround-task-dialog-with-imagemanager#45516</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager : Thanks Aaron, that works fine.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45512&amp;title=workaround-task-dialog-with-imagemanager#45512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 8:53am<br /><br />Thanks Aaron, that works fine.<br><br>I had previously tried dropping a PictureBox on the form and using:<br>&nbsp;&nbsp; Set Picture1.Picture = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal)<br>&nbsp;&nbsp; TaskDialog.MainIconHandle = Picture1.Image.Handle<br><br>The PictureBox correctly displayed the icon, but TaskDialog did not.<br><br>So as you suggest I tried using:<br>&nbsp;&nbsp;&nbsp; Dim Pic as Object<br>&nbsp;&nbsp;&nbsp; Set Pic = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal) &nbsp; &nbsp; &nbsp;&nbsp; ' Exactly same as above<br>&nbsp;&nbsp;&nbsp; TaskDialog.MainIconHandle = Pic.Handle<br><br>And TaskDialog now correctly shows the icon. :-)<br><br><br>?? I do not understand why my<br>&nbsp; TaskDialog.MainIconHandle = ImageManager.Icons.GetImage(ID, 32).CreatePicture(xtpImageNormal).Handle<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; does not work&nbsp; (ie. without going through the intermediate Object).<br><br>Anyway, problem solved. THANK YOU Aaron.<br>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 08:53:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45512&amp;title=workaround-task-dialog-with-imagemanager#45512</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager : Hi Chris,  This will work:  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45507&amp;title=workaround-task-dialog-with-imagemanager#45507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 7:13am<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>This will work:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim stdPic As Object 'See Note 1.</DIV><DIV>&nbsp;&nbsp;&nbsp; 'Dim stdPic as StdPicture 'See Note 2.</DIV><DIV><BR>&nbsp;&nbsp;&nbsp; Set stdPic = ImageManager.Icons.GetImage(0, 32).CreatePicture(xtpImageNormal)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; With wndTaskDialog<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><DIV>Note 1. //this will work also but: see post <a href="https://forum.codejock.com/forum_posts.asp?TID=12868" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=12868</A><DIV>&nbsp;</DIV><DIV>Note 2. //this will work also but: see post <DIV><a href="https://forum.codejock.com/forum_posts.asp?TID=9492" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=9492</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>With second option it isn't clear if this will support alpha images (first one doesn't), well see for yourself in post and maybe <strong>you</strong> will get&nbsp;a reply from support <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 07:13:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45507&amp;title=workaround-task-dialog-with-imagemanager#45507</guid>
  </item> 
  <item>
   <title><![CDATA[(WORKAROUND) Task Dialog with ImageManager :  I have some icons loaded into...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45504&amp;title=workaround-task-dialog-with-imagemanager#45504</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 13419<br /><strong>Posted:</strong> 16 February 2009 at 5:38am<br /><br />I have some icons loaded into an ImageManager control, on same Form as TaskDialog control, but I cannot get the Dialog to show icons from the Image Manager.&nbsp; Here is what I am trying:<br><br>TaskDialog.MainIcon = xtpTaskIconCustom<br>TaskDialog.MainIconHandle = ImageManager.Icons.GetImage(100, 16).Handle<br><br><br><br><br>The TaskDialog displays my text and works OK, but no icon. Can you tell me what is wrong?<br><br>Thanks to Aaron for explaining I need to use an intermediate Object.<br>]]>
   </description>
   <pubDate>Mon, 16 Feb 2009 05:38:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13419&amp;PID=45504&amp;title=workaround-task-dialog-with-imagemanager#45504</guid>
  </item> 
 </channel>
</rss>