468,101 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,101 developers. It's quick & easy.

Reading a Image Property for a control(button) From XML file

Hi,

I have a query regarding reading Image Property for button from a XML
file .
I read XML files to Generate Screens using
System.Windows.Forms.Controls .The XML file is read and properties are
set using Reflection

a sample representation of it is given below

<Control type="System.Windows.Forms.Button, System.Windows.Forms,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="Button2">
<Property name="TabIndex" value="6"></Property>
<Property name="Size" value="75, 23"></Property>
<Property name="Name" value="Button2"></Property>
<Property name="UseVisualStyleBackColor" value="true"></Property>
<Property name="Text" value="Exit"></Property>
<Property name="Location" value="106, 170"></Property>

Is it possible to specify the Image Property as Given Below
<Property name="Image" value="C:\Data\Image.bmp"></Property>

How can the Image Name read at run time and binded to dynamically
generated assembly.Please advice?

regards
doubts.

Mar 1 '07 #1
0 1239

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ester | last post: by
3 posts views Thread by Russell | last post: by
3 posts views Thread by Raghu Raman | last post: by
2 posts views Thread by miladhatam | last post: by
1 post views Thread by TarDuk a memory beyond the life | last post: by
2 posts views Thread by smokeyd | last post: by
4 posts views Thread by glbdev | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.