<?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 : propertyitempicture</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : propertyitempicture]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 14:25:46 +0000</pubDate>
  <lastBuildDate>Sat, 17 Apr 2010 02:29:28 +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=16607</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[propertyitempicture : Hi,  You have to calculate the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16607&amp;PID=58123&amp;title=propertyitempicture#58123</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16607<br /><strong>Posted:</strong> 17 April 2010 at 2:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You have to calculate the width &amp; height of the image yourself and use&nbsp;Item.PreviewWidth &amp; Item.Height to set the desired size.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If you would add the selected image to PropertyGridControl.Icons collection which knows&nbsp;the width &amp; height already and use the GetImage method to get desired width &amp; height and use these to size the PropertyGridItem... Something like this:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub wndPropertyGrid_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; If Item.Type = PropertyItemPicture Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndPropertyGrid.Icons.RemoveIcon 999</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#006600>'<strong>Note</strong>:&nbsp;before adding image to .Icons you&nbsp;have to check if image is an Icon or a Bitmap<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndPropertyGrid.Icons.AddIcon Item.Value, 999, xtpImageNormal<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#006600>'Size PropertyGridItem</FONT></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.PreviewWidth = Me.wndPropertyGrid.Icons.GetImage(999, 0).Width<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Height = Me.wndPropertyGrid.Icons.GetImage(999, 0).Height<BR>&nbsp;&nbsp;&nbsp; End If<BR></DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps a little <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 17 Apr 2010 02:29:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16607&amp;PID=58123&amp;title=propertyitempicture#58123</guid>
  </item> 
  <item>
   <title><![CDATA[propertyitempicture : Hi,  I&amp;#039;ve added a picture...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16607&amp;PID=58117&amp;title=propertyitempicture#58117</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 16607<br /><strong>Posted:</strong> 16 April 2010 at 8:48am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I've added a picture type item to my property grid with an expand button to allow the user to select the desired image. Once the image is selected I see that a tiny preview image is shown on the grid item. Is there a built in method that I can use to allow the user to view a larger version of the preview or will I need to add my own inplace button and open the image in a separate window or picture control?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 16 Apr 2010 08:48:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16607&amp;PID=58117&amp;title=propertyitempicture#58117</guid>
  </item> 
 </channel>
</rss>