Solved

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

Posted on 2012-04-11
2
321 Views
Last Modified: 2012-06-21
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
Comment
Question by:andreas_rafn
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 37833115
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
 

Author Closing Comment

by:andreas_rafn
ID: 37833172
Thansk, and wow thats a very convenient resource reference system btw!
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS 2016 Rendering HTML tables 3 31
VS 2017 18 56
SSRS Deployment problem 5 67
VB.NET Application Installation with sqlserver 8 32
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question