Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
GeneralRe: Filter Dataview Pin
James T. Johnson28-Mar-02 22:34
James T. Johnson28-Mar-02 22:34 
GeneralRe: Filter Dataview Pin
Mazdak28-Mar-02 23:35
Mazdak28-Mar-02 23:35 
GeneralCLI available at MSDN site Pin
27-Mar-02 21:14
suss27-Mar-02 21:14 
GeneralRe: CLI available at MSDN site Pin
James T. Johnson27-Mar-02 21:56
James T. Johnson27-Mar-02 21:56 
GeneralRe: CLI available at MSDN site Pin
Kannan Kalyanaraman27-Mar-02 23:01
Kannan Kalyanaraman27-Mar-02 23:01 
GeneralRe: CLI available at MSDN site Pin
James T. Johnson28-Mar-02 20:32
James T. Johnson28-Mar-02 20:32 
GeneralC# Process "exited" event Pin
sil27-Mar-02 14:29
sil27-Mar-02 14:29 
GeneralUsing resources Pin
27-Mar-02 9:29
suss27-Mar-02 9:29 
I have couple of bitmaps in the root of my project (as Embaded Resources).

When I want to reference them I'm using a code like this:

Bitmap bmp=new Bitmap(GetType(),"Bitmap1.bmp");
pictureBox1.Image=bmp;

But I would like to organize my project and move all the bitmaps to the folder "Bitmaps".

Now the first line of the code above will bomb saying that "The resource "Bitmap1.bmp cannot be found in the class SomeNameSpace.SomeClass", where SomeClass is a class where I reference the Bitmap1.bmp.

How could I instruct C# to find my bitmap?

Jerzy
GeneralRe: Using resources Pin
James T. Johnson27-Mar-02 14:36
James T. Johnson27-Mar-02 14:36 
GeneralRe: Using resources Pin
28-Mar-02 3:38
suss28-Mar-02 3:38 
GeneralCoding Standard and Code Review Pin
Michael P Butler27-Mar-02 9:17
Michael P Butler27-Mar-02 9:17 
GeneralRe: Coding Standard and Code Review Pin
James T. Johnson27-Mar-02 19:57
James T. Johnson27-Mar-02 19:57 
GeneralRe: Coding Standard and Code Review Pin
Kevin McFarlane28-Mar-02 7:59
Kevin McFarlane28-Mar-02 7:59 
GeneralWierd collection problem Pin
27-Mar-02 7:05
suss27-Mar-02 7:05 
GeneralRe: Wierd collection problem Pin
Andy Smith27-Mar-02 7:14
Andy Smith27-Mar-02 7:14 
GeneralComplex configuration files Pin
Michael Groeger27-Mar-02 6:59
Michael Groeger27-Mar-02 6:59 
Questionhow to preserve background after invalidate? Pin
Rüpel27-Mar-02 3:36
Rüpel27-Mar-02 3:36 
GeneralAssociated Files Pin
Nick Parker27-Mar-02 2:38
protectorNick Parker27-Mar-02 2:38 
GeneralPrinting Pin
Mazdak27-Mar-02 1:41
Mazdak27-Mar-02 1:41 
GeneralRe: Printing Pin
Rüpel27-Mar-02 1:52
Rüpel27-Mar-02 1:52 
GeneralRe: Printing Pin
Mazdak27-Mar-02 1:56
Mazdak27-Mar-02 1:56 
Generalstring array Pin
Mazdak26-Mar-02 21:27
Mazdak26-Mar-02 21:27 
GeneralRe: string array Pin
SimonS26-Mar-02 21:48
SimonS26-Mar-02 21:48 
GeneralRe: string array Pin
Mazdak26-Mar-02 22:09
Mazdak26-Mar-02 22:09 
Generalbackup Pin
BLaZiNiX26-Mar-02 19:01
BLaZiNiX26-Mar-02 19:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.