Solved

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

Posted on 2012-04-11
2
318 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net mvc input file 2 32
vb.net checkbox 7 41
How would you add MULTITHREADING to the attached C# code? 4 51
Convert an ASPX page into PDF 7 22
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now