Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-04-11
2
Medium Priority
?
326 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 86

Accepted Solution

by:
Mike Tomlinson earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

916 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