• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

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.
0
andreas_rafn
Asked:
andreas_rafn
1 Solution
 
Mike TomlinsonMiddle 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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now