<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>resource to show a jpg??</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/archived-microstation-v8-2004-edition-programming-forum/14386/resource-to-show-a-jpg</link><description>hi again.. i need help again... i must compose a window like this (vb6 generated) one

http://lh5.ggpht.com/_db1SZJ4YlKc/SUt-po4TXnI/AAAAAAAADok/0aDqTiGdm7w/logomicrosoft.jpg

i have a groupbox, three text, one optionbutton, three pushbutton, and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: resource to show a jpg??</title><link>https://communities.bentley.com/thread/27233?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2008 19:27:35 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5d1212cb-9ab0-4db5-8e0c-6544fce4b9fb</guid><dc:creator>Jon Summers</dc:creator><description>&lt;h4&gt; Images in a Dialog &lt;/h4&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://communities.bentley.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;matatunos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
The task is to select a file on disk and show it on the form, and when you press Ok. 
I don't know how to show it in the form... what kind of resource i need?
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
&lt;p&gt;
It's not clear from your question whether you are writing VBA or MDL.
If you're writing VBA, then post questions to the VBA forum.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;If you are writing VBA then you can place an image in an &lt;em&gt;Image&lt;/em&gt; item (see screenshot)
	&lt;/li&gt;
	&lt;li&gt;If you are writing MDL then should put a &lt;em&gt;Generic&lt;/em&gt; item in your dialog
	&lt;ul&gt;
		&lt;li&gt;display the image using the &lt;em&gt;Create&lt;/em&gt; event in your &lt;em&gt;Generic&lt;/em&gt; item hook function
		&lt;/li&gt;
		&lt;li&gt;free the image memory using the &lt;em&gt;Destroy&lt;/em&gt; event in your &lt;em&gt;Generic&lt;/em&gt; item hook function
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;

&lt;p&gt;
Regards, Jon Summers
&lt;br /&gt;
&lt;a href="http://www.la-solutions.co.uk"&gt;LA Solutions&lt;/a&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description><enclosure url="https://communities.bentley.com/cfs-file/__key/telligent-evolution-components-attachments/00-163-01-00-00-02-72-33/VBA_2D00_Image.png" length="55601" type="image/png" /></item></channel></rss>