Accessing resource images

Posted on 2006-04-01
Last Modified: 2010-04-16

Hi, I am just starting out in C#, and am having trouble accessing my image resources.  I double-clicked on the project properties, which brought up the project designer, then clicked the Resources tab.  I added a few images.  Back in VB.NET, I could then access them directly using the My.Resources object; i.e., my resources became objects within that object, it was slick.  Is there an equivalent way to directly access my resources in C#?

Thanks in advance!
Question by:riceman0
    1 Comment
    LVL 6

    Accepted Solution

    Use Properties.Resources.NameOfResource

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    754 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

    17 Experts available now in Live!

    Get 1:1 Help Now