Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox save as HTML Pin
jeweladdict13-Oct-05 12:09
jeweladdict13-Oct-05 12:09 
GeneralRe: RichTextBox save as HTML Pin
Judah Gabriel Himango13-Oct-05 15:28
sponsorJudah Gabriel Himango13-Oct-05 15:28 
QuestionEnableViewState question Pin
kani9813-Oct-05 8:27
kani9813-Oct-05 8:27 
AnswerRe: EnableViewState question Pin
Guffa13-Oct-05 9:01
Guffa13-Oct-05 9:01 
QuestionAccessing objects in resource files Pin
Rendili13-Oct-05 8:01
Rendili13-Oct-05 8:01 
AnswerRe: Accessing objects in resource files Pin
turbochimp13-Oct-05 20:06
turbochimp13-Oct-05 20:06 
GeneralRe: Accessing objects in resource files Pin
Rendili14-Oct-05 5:49
Rendili14-Oct-05 5:49 
GeneralRe: Accessing objects in resource files Pin
turbochimp14-Oct-05 7:34
turbochimp14-Oct-05 7:34 
Assuming you're not creating the resource you're consuming (if you were, I would suggest saving a lot of hassle and just using the ResourceWriter type), and you're stuck with a Win32 resource, you should be able to use the ResourceManager type to get what you need if, as your example suggests, you're embedding the resource in your application assembly.

Example (where the byte array is your serialized image stream):

public byte[] Binary(string key)
{
    ResourceManager resManager = new ResourceManager("[ASSEMBLYNAME]", This.GetType().Assembly);
      return (byte[]) resManager.GetObject(key);
   }


Here[^] is a link with a little more info.

Hope this helps.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

GeneralRe: Accessing objects in resource files Pin
Rendili14-Oct-05 7:47
Rendili14-Oct-05 7:47 
GeneralRe: Accessing objects in resource files Pin
turbochimp14-Oct-05 7:57
turbochimp14-Oct-05 7:57 
GeneralRe: Accessing objects in resource files Pin
Rendili14-Oct-05 8:17
Rendili14-Oct-05 8:17 
QuestionTextBox. How to Validate for Number?? Pin
...---...13-Oct-05 6:46
...---...13-Oct-05 6:46 
AnswerRe: TextBox. How to Validate for Number?? Pin
Dan Neely13-Oct-05 6:52
Dan Neely13-Oct-05 6:52 
GeneralRe: TextBox. How to Validate for Number?? Pin
...---...13-Oct-05 8:03
...---...13-Oct-05 8:03 
GeneralRe: TextBox. How to Validate for Number?? Pin
Dan Neely13-Oct-05 9:27
Dan Neely13-Oct-05 9:27 
GeneralRe: TextBox. How to Validate for Number?? Pin
Anonymous13-Oct-05 13:02
Anonymous13-Oct-05 13:02 
AnswerRe: TextBox. How to Validate for Number?? Pin
Anonymous13-Oct-05 16:21
Anonymous13-Oct-05 16:21 
AnswerRe: TextBox. How to Validate for Number?? Pin
nps_ltv13-Oct-05 17:22
nps_ltv13-Oct-05 17:22 
AnswerRe: TextBox. How to Validate for Number?? Pin
Luis Alonso Ramos13-Oct-05 17:29
Luis Alonso Ramos13-Oct-05 17:29 
AnswerRe: TextBox. How to Validate for Number?? Pin
albCode13-Oct-05 20:56
albCode13-Oct-05 20:56 
QuestionComboBox - Set first display item in dropdown list Pin
--Ian13-Oct-05 5:51
--Ian13-Oct-05 5:51 
AnswerRe: ComboBox - Set first display item in dropdown list Pin
miah alom13-Oct-05 7:37
miah alom13-Oct-05 7:37 
GeneralRe: ComboBox - Set first display item in dropdown list Pin
--Ian13-Oct-05 8:49
--Ian13-Oct-05 8:49 
AnswerRe: ComboBox - Set first display item in dropdown list Pin
--Ian14-Oct-05 10:47
--Ian14-Oct-05 10:47 
Questionprocess security question Pin
devmaximus13-Oct-05 5:00
devmaximus13-Oct-05 5:00 

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.