473,804 Members | 3,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Wi ndows.Forms.But ton, System.Windows. Forms,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
name="Button2">
<Property name="TabIndex" value="6"></Property>
<Property name="Size" value="75, 23"></Property>
<Property name="Name" value="Button2" ></Property>
<Property name="UseVisual StyleBackColor" 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 1440

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2450
by: Ester | last post by:
I have an interior design of a living room with lights and aircond image. My task is to load the living room image without any light and aircond images as background image of a WebForm after that I have to add image button which are lights and aircond images on top of this background image (living room). Instead of drag and drop an image button from the toolbox and browse the image link, I would like to load the image for the image button from...
3
5444
by: Russell | last post by:
I have a web page that i am using an image button as my submit button. The code behind the button works, but when I click enter on the web page, nothing happens. Can anybody tell me how to get my image button to act as the default button on the form? Thanks in advance Russell
1
2631
by: keithb | last post by:
I need help connecting an image button in a GridView control to an event handler. Using the OnCommand property results in the following error: Error 3 'UserControls_Rem.ImageButton_Command(object, System.Web.UI.WebControls.CommandEventArgs)' is inaccessible due to its protection level C:\local_websites\btm_root\UserControls\Rem.ascx 7 I must be doing something wrong here. Can someone offer a suggestion? Thanks,
1
1864
by: amit | last post by:
Hello, I saw on an article that you can capture an image like: ****************** from here ******************* Consider the following HTML definition: <IMG SRC="anything.gif" NAME="anything" HEIGHT="100" WIDTH="100">
3
3025
by: Raghu Raman | last post by:
Hi i want to save the read the image file and show it on a image control of a mobile webform .But the mobile control does not support html images ,so i am forced to use the server image control to show the read image. i have the image available in a datarow which is read from db. As control only has the imageurl property ,i need to save the read image to an image image file and then assign it to the control .
2
1680
by: miladhatam | last post by:
i've made a dynamic website that upload an image file in image directory with fileuploader control and it's name was renamed and get ready to show with image control but i have a problem i want to change the size of image and decrease it's size and i have another question how can i show an image file in an image control with maintaining the aspect ratio of that i don't wanna the image control stretch the image
1
6003
by: TarDuk a memory beyond the life | last post by:
I am developing a shopping cart application for jwellary designing \ now i am displaying all the product in the table dynamically. and also show on image button as a add to cart after every item. now when ever client clicks on the add to cart button than i want the item id no in the button's click event's how can be it possible. Here i show the code System.Web.UI.WebControls.ImageButton add = new...
2
8800
by: smokeyd | last post by:
i am trying to create a simple image button rollover.. i have searched this forum and found a number of solutions but none seem to work. i am just trying to get the onmouseover to swap the image then restore when rolled out on a web page in vb.net. please can someone help?
3
4522
by: glbdev | last post by:
Hi. I have a gridview in which each row has an image button attached. I have each button in each row set up to be associated with a DB field. When I hover above the button it shows me the correct value of the DB field in a tooltip, so there is no problem there. But ...how do I access that value? When the user clicks that button I will redirect him to a new page and I need to use the value as an ID in a querystring, but cannot figure...
4
3682
by: glbdev | last post by:
Hi, I posted this question yesterday but didn't get the answer I needed. I am DESPERATE to get this working so I'm re-posting it because I don't think I worded it correctly. I have a GridView which is databound to a table. All the data is being pulled correctly so there is no problem there. On each row I have an image button which is attached to a
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9569
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9130
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.