Click here to Skip to main content
15,898,599 members
Home / Discussions / C#
   

C#

 
GeneralSaving image Pin
wetdog50022-Apr-05 9:23
wetdog50022-Apr-05 9:23 
GeneralRe: Saving image Pin
Polis Pilavas22-Apr-05 9:46
Polis Pilavas22-Apr-05 9:46 
GeneralRe: Saving image Pin
wetdog50022-Apr-05 9:54
wetdog50022-Apr-05 9:54 
GeneralRe: Saving image Pin
Polis Pilavas22-Apr-05 9:58
Polis Pilavas22-Apr-05 9:58 
GeneralRe: Saving image Pin
wetdog50022-Apr-05 10:09
wetdog50022-Apr-05 10:09 
GeneralRe: Saving image Pin
Polis Pilavas22-Apr-05 10:21
Polis Pilavas22-Apr-05 10:21 
GeneralRe: Saving image Pin
wetdog50022-Apr-05 10:30
wetdog50022-Apr-05 10:30 
GeneralRe: Saving image Pin
Polis Pilavas22-Apr-05 10:40
Polis Pilavas22-Apr-05 10:40 
wetdog500 wrote:
How do I access that resource?

To programmatically access one of your resources you could say something like:
Assembly myAssembly = GetExecutingAssembly();
Stream resourceStream = myAssembly.GetManifestResourceStream("myBitmap.bmp");
Bitmap image = new Bitmap(resourceStream);


wetdog500 wrote:
I want to have the user copy a resource in my program

I am not sure whether you can do that. Resources are part of your assembly and are included in it every time you compile your program


Regards,
Polis

Can you practice what you teach?
GeneralRe: Saving image Pin
wetdog50022-Apr-05 10:51
wetdog50022-Apr-05 10:51 
GeneralRe: Saving image Pin
Polis Pilavas22-Apr-05 10:53
Polis Pilavas22-Apr-05 10:53 
GeneralRe: Saving image Pin
jinzhecheng23-Apr-05 9:00
jinzhecheng23-Apr-05 9:00 
GeneralCool: MessageBox.Show(3.1415927.ToString()); Pin
Member 9622-Apr-05 8:04
Member 9622-Apr-05 8:04 
GeneralRe: Cool: MessageBox.Show(3.1415927.ToString()); Pin
turbochimp22-Apr-05 8:28
turbochimp22-Apr-05 8:28 
GeneralRe: Cool: MessageBox.Show(3.1415927.ToString()); Pin
DavidNohejl22-Apr-05 9:18
DavidNohejl22-Apr-05 9:18 
GeneralRe: Cool: MessageBox.Show(3.1415927.ToString()); Pin
turbochimp22-Apr-05 9:38
turbochimp22-Apr-05 9:38 
GeneralRe: Cool: MessageBox.Show(3.1415927.ToString()); Pin
DavidNohejl22-Apr-05 9:44
DavidNohejl22-Apr-05 9:44 
Generalcombox in property grid Pin
jinzhecheng22-Apr-05 7:00
jinzhecheng22-Apr-05 7:00 
Generalwindow service Pin
hareluya22-Apr-05 5:58
hareluya22-Apr-05 5:58 
GeneralRe: window service Pin
John Fisher22-Apr-05 8:00
John Fisher22-Apr-05 8:00 
GeneralIs it worth to download VS2005 Express Beta2 Pin
Anonymous22-Apr-05 5:12
Anonymous22-Apr-05 5:12 
GeneralRe: Is it worth to download VS2005 Express Beta2 Pin
Carl Mercier22-Apr-05 9:11
Carl Mercier22-Apr-05 9:11 
QuestionA question no one has asked ??? Pin
LongRange.Shooter22-Apr-05 5:08
LongRange.Shooter22-Apr-05 5:08 
AnswerRe: A question no one has asked ??? Pin
Dave Kreskowiak22-Apr-05 5:36
mveDave Kreskowiak22-Apr-05 5:36 
GeneralRe: A question no one has asked ??? Pin
LongRange.Shooter25-Apr-05 8:13
LongRange.Shooter25-Apr-05 8:13 
GeneralTreeView--Treenode with a Checkbox bound to database Pin
billoo22-Apr-05 4:14
billoo22-Apr-05 4:14 

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.