Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralOutOfMemoryException despite having 600+ MB of RAM free Pin
Jordanwb6-Apr-08 4:25
Jordanwb6-Apr-08 4:25 
QuestionRe: OutOfMemoryException despite having 600+ MB of RAM free Pin
CPallini6-Apr-08 4:39
mveCPallini6-Apr-08 4:39 
GeneralRe: OutOfMemoryException despite having 600+ MB of RAM free Pin
Jordanwb6-Apr-08 4:46
Jordanwb6-Apr-08 4:46 
GeneralRe: OutOfMemoryException despite having 600+ MB of RAM free Pin
CPallini6-Apr-08 6:23
mveCPallini6-Apr-08 6:23 
GeneralRe: OutOfMemoryException despite having 600+ MB of RAM free Pin
Jordanwb6-Apr-08 6:31
Jordanwb6-Apr-08 6:31 
GeneralRe: OutOfMemoryException despite having 600+ MB of RAM free Pin
Guffa6-Apr-08 6:11
Guffa6-Apr-08 6:11 
QuestionInvalidate picturebox with rectangle on Pin
Casper Hansen6-Apr-08 3:49
Casper Hansen6-Apr-08 3:49 
GeneralRe: Invalidate picturebox with rectangle on Pin
Luc Pattyn6-Apr-08 5:05
sitebuilderLuc Pattyn6-Apr-08 5:05 
Hi,

Graphics.FromImage(pictureBox1.Image); gives you access to the internals of
the image the PB is showing. g.DrawRectangle(...); modifies this image;
such modification is irreversible, invalidating the PB only tells it to repaint itself,
hence showing the modified image again.

If you want to be able to undo graphic stuff,
either paint on top of the PB (using its OnPaint handler)
or keep a copy of the original image, so you can restore it (PB.Image=oldImage;).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


Questionhow to validate a textbox in a window Form Pin
yangliuxiaowu6-Apr-08 1:40
yangliuxiaowu6-Apr-08 1:40 
AnswerRe: how to validate a textbox in a window Form Pin
Luc Pattyn6-Apr-08 5:08
sitebuilderLuc Pattyn6-Apr-08 5:08 
Questionselect domain name part of a url saved in a string Pin
Farhad Eft6-Apr-08 1:25
Farhad Eft6-Apr-08 1:25 
GeneralRe: select domain name part of a url saved in a string Pin
Ryan Bost6-Apr-08 5:22
Ryan Bost6-Apr-08 5:22 
GeneralRe: select domain name part of a url saved in a string Pin
Farhad Eft8-Apr-08 5:59
Farhad Eft8-Apr-08 5:59 
GeneralSoapFormatter: Ignore missing fields Pin
Roger Alsing5-Apr-08 23:24
Roger Alsing5-Apr-08 23:24 
QuestionHow to change caption text in default ColorDialog ? Pin
eslange5-Apr-08 23:03
eslange5-Apr-08 23:03 
GeneralPublish XNA Project (Please?) [modified] Pin
MasterSharp5-Apr-08 12:03
MasterSharp5-Apr-08 12:03 
GeneralRe: Publish XNA Project (Please?) Pin
MarkB7775-Apr-08 17:22
MarkB7775-Apr-08 17:22 
GeneralRe: Publish XNA Project (Please?) Pin
MasterSharp6-Apr-08 3:33
MasterSharp6-Apr-08 3:33 
QuestionTaking a screen shot of a control Pin
nike_arh5-Apr-08 11:24
nike_arh5-Apr-08 11:24 
GeneralRe: Taking a screen shot of a control Pin
nike_arh5-Apr-08 11:36
nike_arh5-Apr-08 11:36 
GeneralRe: Taking a screen shot of a control Pin
Matthew Butler5-Apr-08 11:41
Matthew Butler5-Apr-08 11:41 
GeneralRe: Taking a screen shot of a control Pin
Anthony Mushrow5-Apr-08 12:50
professionalAnthony Mushrow5-Apr-08 12:50 
GeneralRe: Taking a screen shot of a control Pin
nike_arh5-Apr-08 22:57
nike_arh5-Apr-08 22:57 
GeneralRe: Taking a screen shot of a control Pin
Anthony Mushrow6-Apr-08 0:32
professionalAnthony Mushrow6-Apr-08 0:32 
GeneralRe: Taking a screen shot of a control Pin
PIEBALDconsult5-Apr-08 16:26
mvePIEBALDconsult5-Apr-08 16:26 

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.