Page 1 of 1

Resources in C#

Posted: 01 Oct 2004, 15:31
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.

Posted: 06 Oct 2004, 07:41
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.

Posted: 06 Oct 2004, 13:36
by Uranium
Thanx, Ruad.

Posted: 06 Oct 2004, 15:12
by NightStalker
We gona need a bit more info than that to help u, i dnt understand wat u r trying 2 do

Posted: 06 Oct 2004, 15:21
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.

Posted: 07 Oct 2004, 01:16
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.

Posted: 08 Oct 2004, 16:30
by Uranium
Thanks for the help. I figured it out - the Properties namespace has a member corresponding to each item in the resource file.