TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sam
NA
1
0
change Resources bitmap using string
Jun 26 2006 9:39 AM
hey guys, I am trying to change a PictureBox's image...
This stuff
works
:
m_CardImg =
new
PictureBox
();
m_CardImg.Image = cardGame.Properties.
Resources
.b1fv;
This stuff
does not
work:
string newImageLink = "b1fv";
m_CardImg =
new
PictureBox
();
m_CardImg.Image = cardGame.Properties.
Resources +
newImageLink
;
I am trying to change the Resources bitmap image called b1fv using a variable called newImageLink (which contains a string version of it).
Thank you in advance for your help!
Reply
Answers (
1
)
A student in Viet Nam ? Have a question ?
Help Text File