Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
GeneralRe: Pressing the X Button Pin
J4amieC5-Dec-05 21:56
J4amieC5-Dec-05 21:56 
GeneralRe: Pressing the X Button Pin
TheMajorRager6-Dec-05 6:26
TheMajorRager6-Dec-05 6:26 
QuestionEasy forms question Pin
melanieab5-Dec-05 8:40
melanieab5-Dec-05 8:40 
AnswerRe: Easy forms question Pin
Dan Neely5-Dec-05 9:11
Dan Neely5-Dec-05 9:11 
AnswerRe: Easy forms question Pin
Alvaro Mendez5-Dec-05 9:41
Alvaro Mendez5-Dec-05 9:41 
QuestionListview column resizing problem Pin
Dan Neely5-Dec-05 8:27
Dan Neely5-Dec-05 8:27 
QuestionIs it possible to remove existing graphics from an image? Pin
Gulfraz Khan5-Dec-05 6:30
Gulfraz Khan5-Dec-05 6:30 
AnswerRe: Is it possible to remove existing graphics from an image? Pin
mav.northwind5-Dec-05 7:12
mav.northwind5-Dec-05 7:12 
Hi!

I'm afraid you can't do this. You'll have to store the base image somewhere, duplicate it and then perform all the painting you want to be seen one after the other. That way you don't modify the original image and you can draw the original version as often as you like.

In order to remove the rectangle you've drawn previously you'd have to remember all the pixel values for each pixel your rectangle is drawn over and then restore them one by one.
I strongly doubt that this is working efficiently, especially when you have more forms than just a rectangle.

Regards,
mav
AnswerRe: Is it possible to remove existing graphics from an image? Pin
Robert Rohde5-Dec-05 7:13
Robert Rohde5-Dec-05 7:13 
AnswerRe: Is it possible to remove existing graphics from an image? Pin
dnewmon5-Dec-05 7:22
dnewmon5-Dec-05 7:22 
GeneralRe: Is it possible to remove existing graphics from an image? Pin
Gulfraz Khan7-Dec-05 2:28
Gulfraz Khan7-Dec-05 2:28 
QuestionDateTime Range Pin
lior654#hotmail.com5-Dec-05 4:36
lior654#hotmail.com5-Dec-05 4:36 
AnswerRe: DateTime Range Pin
dnewmon5-Dec-05 6:58
dnewmon5-Dec-05 6:58 
GeneralRe: DateTime Range Pin
lior654#hotmail.com5-Dec-05 18:23
lior654#hotmail.com5-Dec-05 18:23 
GeneralRe: DateTime Range Pin
dnewmon6-Dec-05 7:21
dnewmon6-Dec-05 7:21 
Questiontypedef in c# Pin
Sasuko5-Dec-05 4:26
Sasuko5-Dec-05 4:26 
AnswerRe: typedef in c# Pin
ThaddParker5-Dec-05 4:32
ThaddParker5-Dec-05 4:32 
AnswerRe: typedef in c# Pin
J4amieC5-Dec-05 4:42
J4amieC5-Dec-05 4:42 
GeneralRe: typedef in c# Pin
Curtis Schlak.5-Dec-05 5:51
Curtis Schlak.5-Dec-05 5:51 
GeneralRe: typedef in c# Pin
mav.northwind5-Dec-05 7:04
mav.northwind5-Dec-05 7:04 
GeneralRe: typedef in c# Pin
dnewmon5-Dec-05 7:29
dnewmon5-Dec-05 7:29 
GeneralRe: typedef in c# Pin
Curtis Schlak.5-Dec-05 9:23
Curtis Schlak.5-Dec-05 9:23 
QuestionTrying to encrypt a string Pin
Rich Poulin5-Dec-05 3:58
Rich Poulin5-Dec-05 3:58 
AnswerRe: Trying to encrypt a string Pin
Colin Angus Mackay5-Dec-05 4:23
Colin Angus Mackay5-Dec-05 4:23 
QuestionInvoking an html button in a WebBrowser control Pin
Martin235-Dec-05 2:47
Martin235-Dec-05 2:47 

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.