CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Location
    Hyderabad
    Posts
    50

    Question Resources in C#(.NET)

    Hi All,
    Is there any tutorial for how to use the resources in .NET(C#). Most of the tutorials use the command prompt for attaching the resources with the assembly. How we can do that directly from .NET Editor.
    Chetan Bharat,
    India.

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Resources in C#(.NET)

    There are several ways to do this.
    One is to add the file you want to use as resource to your Project, and then set the property Build Action (point on the file and see the Properties Grid) to Embedded Resource.

    Next you can use the Resources tab of the Project Properties page (in 2005). There is a very nice GUI to add images/strings/a lot of other types to your resources, either by creating them, adding files and more.
    You can access the resources by using the Properties.Resources class generated for you. VERY NICE.
    Last edited by jhammer; August 7th, 2006 at 05:52 AM.

  3. #3
    Join Date
    Oct 2005
    Location
    Islamabad, Pakistan
    Posts
    1,277

    Re: Resources in C#(.NET)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured