Click here to Skip to main content
15,912,021 members
Home / Discussions / C#
   

C#

 
GeneralRe: call an opener form method [modified] Pin
Paladin20005-Jan-11 6:33
Paladin20005-Jan-11 6:33 
AnswerRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 7:05
professionalfjdiewornncalwe5-Jan-11 7:05 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 7:33
Paladin20005-Jan-11 7:33 
JokeRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 9:32
professionalfjdiewornncalwe5-Jan-11 9:32 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 7:39
Paladin20005-Jan-11 7:39 
QuestionGet image from resource Pin
csrss5-Jan-11 1:38
csrss5-Jan-11 1:38 
AnswerRe: Get image from resource Pin
RaviRanjanKr5-Jan-11 1:51
professionalRaviRanjanKr5-Jan-11 1:51 
AnswerRe: Get image from resource Pin
JF20155-Jan-11 1:54
JF20155-Jan-11 1:54 
Hi,

I've just tried the following code that works for me:
C#
ResourceManager resourceManager = new ResourceManager("WindowsFormsApplication1.Properties.Resources", this.GetType().Assembly);
Bitmap image = (Bitmap)resourceManager.GetObject("snapshot1");
image.Save("C:\\Temp\\Test123.bmp");

This code works if you add a bitmap called "snapshot.bmp" to your resources. Please make sure that the assembly string does match you project. You will find both strings in the "Resources.Designer.cs" file.

Have a look here for a more detailed explanation:
http://www.mysuperiorgames.com/resources.html[^]
GeneralRe: Get image from resource Pin
csrss5-Jan-11 2:31
csrss5-Jan-11 2:31 
QuestionGetting Permisions Pin
Wamuti4-Jan-11 23:13
Wamuti4-Jan-11 23:13 
AnswerRe: Getting Permisions [modified] Pin
RaviRanjanKr4-Jan-11 23:53
professionalRaviRanjanKr4-Jan-11 23:53 
AnswerRe: Getting Permisions PinPopular
Luc Pattyn5-Jan-11 2:45
sitebuilderLuc Pattyn5-Jan-11 2:45 
GeneralRe: Getting Permisions Pin
Wamuti8-Jan-11 3:21
Wamuti8-Jan-11 3:21 
GeneralRe: Getting Permisions Pin
Luc Pattyn8-Jan-11 3:29
sitebuilderLuc Pattyn8-Jan-11 3:29 
Generaltest (just ignore) Pin
Luc Pattyn13-Jan-11 9:39
sitebuilderLuc Pattyn13-Jan-11 9:39 
Generaltest (just ignore) Pin
Luc Pattyn13-Jan-11 9:39
sitebuilderLuc Pattyn13-Jan-11 9:39 
Generaltest (just ignore) [modified] Pin
Luc Pattyn13-Jan-11 9:40
sitebuilderLuc Pattyn13-Jan-11 9:40 
Generaltest (just ignore) Pin
Luc Pattyn13-Jan-11 9:56
sitebuilderLuc Pattyn13-Jan-11 9:56 
QuestionQuiz Application In c#.net Pin
varun.g4-Jan-11 23:03
varun.g4-Jan-11 23:03 
AnswerRe: Quiz Application In c#.net Pin
JF20154-Jan-11 23:16
JF20154-Jan-11 23:16 
GeneralRe: Quiz Application In c#.net Pin
varun.g4-Jan-11 23:33
varun.g4-Jan-11 23:33 
GeneralRe: Quiz Application In c#.net Pin
JF20155-Jan-11 2:05
JF20155-Jan-11 2:05 
GeneralRe: Quiz Application In c#.net Pin
varun.g5-Jan-11 16:48
varun.g5-Jan-11 16:48 
QuestionbackgroundWorker Pin
arkiboys4-Jan-11 22:34
arkiboys4-Jan-11 22:34 
AnswerRe: backgroundWorker Pin
JF20154-Jan-11 22:39
JF20154-Jan-11 22:39 

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.