Click here to Skip to main content
15,886,071 members
Home / Discussions / C#
   

C#

 
QuestionControl Focus for MouseMove Events Pin
greytone810-Jul-08 11:13
professionalgreytone810-Jul-08 11:13 
AnswerRe: Control Focus for MouseMove Events Pin
Luc Pattyn10-Jul-08 12:56
sitebuilderLuc Pattyn10-Jul-08 12:56 
QuestionCopying from a memory structure to a jpg file Pin
SkyhiKeeper10-Jul-08 11:00
SkyhiKeeper10-Jul-08 11:00 
AnswerRe: Copying from a memory structure to a jpg file Pin
half-life10-Jul-08 22:46
half-life10-Jul-08 22:46 
Questionassigning keyboard shortcuts to buttons in a form Pin
danmcb10-Jul-08 10:47
danmcb10-Jul-08 10:47 
AnswerRe: assigning keyboard shortcuts to buttons in a form Pin
Luc Pattyn10-Jul-08 12:59
sitebuilderLuc Pattyn10-Jul-08 12:59 
AnswerRe: assigning keyboard shortcuts to buttons in a form Pin
Nirandas10-Jul-08 19:14
Nirandas10-Jul-08 19:14 
QuestionSaving/Loading an image to/from xml Pin
Justin Time10-Jul-08 10:43
Justin Time10-Jul-08 10:43 
Hey, I have been desperately trying to save and load an image from xml. My latest attempt resulted in me getting encoding issues.

This is how I load from xml
ProfileImageData = mT.FirstChild.Value;<br />
byte[] content = UTF8Encoding.UTF8.GetBytes(ProfileImageData);<br />
MemoryStream stream = new MemoryStream(content);<br />
ProfileImage = new Bitmap(stream);

This is how i save to xml
<br />
MemoryStream stream = new MemoryStream();<br />
            Image.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);<br />
            Byte[] dat = stream.ToArray();<br />
<br />
                XmlCDataSection mImageData = mRoot.OwnerDocument.CreateCDataSection(<br />
                    System.Text.UTF8Encoding.UTF8.GetString(dat, 0, dat.Length));


Any hints, tips, anything on how I could get this to work?
QuestionRetreiving available parameters from executables...is it possible? Pin
GreatBarrier8610-Jul-08 9:57
GreatBarrier8610-Jul-08 9:57 
AnswerRe: Retreiving available parameters from executables...is it possible? Pin
Thomas Stockwell10-Jul-08 10:31
professionalThomas Stockwell10-Jul-08 10:31 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
GreatBarrier8610-Jul-08 10:41
GreatBarrier8610-Jul-08 10:41 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Thomas Stockwell10-Jul-08 10:54
professionalThomas Stockwell10-Jul-08 10:54 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Joe Woodbury10-Jul-08 16:59
professionalJoe Woodbury10-Jul-08 16:59 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Ashfield10-Jul-08 21:13
Ashfield10-Jul-08 21:13 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Joe Woodbury11-Jul-08 5:14
professionalJoe Woodbury11-Jul-08 5:14 
GeneralRe: Retreiving available parameters from executables...is it possible? Pin
Ashfield11-Jul-08 9:32
Ashfield11-Jul-08 9:32 
QuestionDataGridView strange Pin
muharrem10-Jul-08 9:18
muharrem10-Jul-08 9:18 
AnswerRe: DataGridView strange Pin
paas10-Jul-08 9:36
paas10-Jul-08 9:36 
GeneralRe: DataGridView strange Pin
muharrem10-Jul-08 10:49
muharrem10-Jul-08 10:49 
QuestionRemoting - sending a message from both server and client? Pin
Iron Goat10-Jul-08 9:02
Iron Goat10-Jul-08 9:02 
AnswerRe: Remoting - sending a message from both server and client? Pin
mav.northwind11-Jul-08 21:31
mav.northwind11-Jul-08 21:31 
Questionneed help with LOOP to display records from Access Database............ Pin
Reality Strikes10-Jul-08 8:48
Reality Strikes10-Jul-08 8:48 
AnswerRe: need help with LOOP to display records from Access Database............ Pin
Pete O'Hanlon10-Jul-08 8:58
mvePete O'Hanlon10-Jul-08 8:58 
GeneralRe: need help with LOOP to display records from Access Database............ Pin
Reality Strikes11-Jul-08 5:21
Reality Strikes11-Jul-08 5:21 
AnswerRe: need help with LOOP to display records from Access Database............ Pin
Reality Strikes10-Jul-08 9:12
Reality Strikes10-Jul-08 9:12 

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.