How do I refer to a stored resource picture at runtime in VS2010 with VB.NET?

I have stored some application picture files in my resource collection in VS2010.
I have used these in the designer up until now. However now I need to refer to and use these pictures at runtime, more specifically change the image of a ToolStripMenuItem object.
andreas_rafnAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Just use "My.Resources.xxx" to access the resource:

    ToolStripButton1.Image = My.Resources.ImageNameHere ' <-- It will give you a list to choose from when hitting "." after "Resources"
0
 
andreas_rafnAuthor Commented:
Thansk, and wow thats a very convenient resource reference system btw!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.