-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Edward
Message 2 in Discussion
Add the images to your project and change
the BuildAction of the Image in Properties window to "Embedded
Resource"
Using the below code u can retrive it from
the Assembly.
Dim thisExe As
System.Reflection.Assembly
thisExe =
System.Reflection.Assembly.GetExecutingAssembly()
Dim file As
System.IO.Stream =
thisExe.GetManifestResourceStream("AssemblyName.ImageFile.jpg")
Me.PictureBox1.Image
= Image.FromStream(file)
Edward Fernandes
-----Original Message-----
From: Shailaja
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 7:23
PM
To: MumbaiUserGroup
Subject: changing image on
picturebox in user control runtime
New Message on MumbaiUserGroup
changing
image on picturebox in user control runtime
Reply
Reply to Sender Recommend
Message 1 in
Discussion
From: Shailaja
hi All,
This problem is for C# windows application.
I
have a user control whcih contains one picture box along with
other
controls.
Depending on certain conditions I want to
change images on the picturebox.
But at the same time I want
to refer only assembly of the user control in
other
solution.
If I am using method
System.Drawing.Image.FromFile("filename") I have to put
gif
files containing those images in bin directory of solution in
whcih I am
using user control.
But I don't want that.
I
want that only assebly needs to be referenced.
Is there any
way for this.
If yes please send code
snipet.
Thanks
Shailaja
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]