Resources in C#

Get help on programming - C++, Java, Delphi, etc.
Post Reply
Uranium
Registered User
Posts: 275
Joined: 30 Apr 2003, 02:00

Resources in C#

Post by Uranium »

Hi everyone.
Is there anyone who knows how to access resources (in .resx files) created in Visual Studio in C#. Im trying toget around the problem of having to install 5 pics, icons and cursors whenever I write a program with customised stuff, or for sprites in GDI.
UR@|\|1U|\/|
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Post by RuadRauFlessa »

Kronos would be the one to speak to but unfortunately he is out on leave for the rest of the week. Will give him a hollar and let him know.
Uranium
Registered User
Posts: 275
Joined: 30 Apr 2003, 02:00

Post by Uranium »

Thanx, Ruad.
UR@|\|1U|\/|
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
NightStalker
Registered User
Posts: 11
Joined: 29 Sep 2004, 02:00

Post by NightStalker »

We gona need a bit more info than that to help u, i dnt understand wat u r trying 2 do
Uranium
Registered User
Posts: 275
Joined: 30 Apr 2003, 02:00

Post by Uranium »

I have created a .resx resource file with the inbuilt resource editor in Visual Studio 2005 (beta 1), and I can't find out how to access images in it.
UR@|\|1U|\/|
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
Garret
Registered User
Posts: 826
Joined: 18 Feb 2004, 02:00
Location: Johannesburg

Post by Garret »

All of your designers have a .resx file that is hidden - so when you add objects to those designers, weither it be images or buttons, they will get written there.

I you want a central source of the types of resources - images, I guess - you want to access then take a look at your help at
[url]ms-help://MS.VSCC.2003/MS.MSDNQTR.2004APR.1033/vcresed/html/_asug_Overview.3a_.Resource_Editors.htm[/url] - assuming that you have got msdn installed.

I'm not sure if you have taken a look at this - but it seems to have all the editors you would need.
Uranium
Registered User
Posts: 275
Joined: 30 Apr 2003, 02:00

Post by Uranium »

Thanks for the help. I figured it out - the Properties namespace has a member corresponding to each item in the resource file.
UR@|\|1U|\/|
My PC:
AMD Athlon64 3500+
2GB DDR400 RAM
GeForce 6800GT 256MB
120 GB SATA HDD
Post Reply