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

C#

 
GeneralRe: print pdf file to network printer using printer IP address Pin
There is always the way to do it, but I don't know14-Aug-07 17:27
There is always the way to do it, but I don't know14-Aug-07 17:27 
GeneralRe: print pdf file to network printer using printer IP address Pin
Hessam Jalali16-Aug-07 20:23
Hessam Jalali16-Aug-07 20:23 
QuestionPainting Reversible Rectangle Pin
T.D.Prasad13-Aug-07 7:03
T.D.Prasad13-Aug-07 7:03 
AnswerRe: Painting Reversible Rectangle Pin
Christian Graus13-Aug-07 8:19
protectorChristian Graus13-Aug-07 8:19 
QuestionRe: Painting Reversible Rectangle Pin
T.D.Prasad13-Aug-07 8:37
T.D.Prasad13-Aug-07 8:37 
AnswerRe: Painting Reversible Rectangle Pin
Luc Pattyn13-Aug-07 8:51
sitebuilderLuc Pattyn13-Aug-07 8:51 
QuestionRe: Painting Reversible Rectangle Pin
T.D.Prasad13-Aug-07 9:02
T.D.Prasad13-Aug-07 9:02 
AnswerRe: Painting Reversible Rectangle Pin
Luc Pattyn13-Aug-07 9:14
sitebuilderLuc Pattyn13-Aug-07 9:14 
Hi,

what is it that would make it impossible to do all painting in a Paint handler ?

you can have one Rectangle (say rubberRect) and one boolean class member
(say showRubberRect), have your mouse handlers modify those variables AND call
Invalidate(), and have your Paint handler paint the rubber band (if showRubberRect
is true). That would be a clean approach that follows both rules; and it would work.

About fancy XOR drawing: if you manage to do it in a mouse handler, you could
do it also in a Paint handler.

For the kind of things you want to achieve, it may be wise to set up a
double-buffering scheme.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: Painting Reversible Rectangle Pin
Christian Graus13-Aug-07 8:55
protectorChristian Graus13-Aug-07 8:55 
QuestionRe: Painting Reversible Rectangle Pin
T.D.Prasad13-Aug-07 9:12
T.D.Prasad13-Aug-07 9:12 
QuestionHighlight Value on Tab Pin
Joemama6113-Aug-07 5:03
Joemama6113-Aug-07 5:03 
AnswerRe: Highlight Value on Tab Pin
Luc Pattyn13-Aug-07 5:38
sitebuilderLuc Pattyn13-Aug-07 5:38 
GeneralRe: Highlight Value on Tab Pin
Joemama6113-Aug-07 10:39
Joemama6113-Aug-07 10:39 
GeneralRe: Highlight Value on Tab Pin
Luc Pattyn13-Aug-07 10:52
sitebuilderLuc Pattyn13-Aug-07 10:52 
QuestionSQL connection timeout Pin
Demian Panello13-Aug-07 4:43
Demian Panello13-Aug-07 4:43 
AnswerRe: SQL connection timeout Pin
Justin Perez13-Aug-07 4:48
Justin Perez13-Aug-07 4:48 
GeneralRe: SQL connection timeout Pin
Demian Panello13-Aug-07 5:03
Demian Panello13-Aug-07 5:03 
GeneralRe: SQL connection timeout Pin
Justin Perez13-Aug-07 5:12
Justin Perez13-Aug-07 5:12 
GeneralRe: SQL connection timeout Pin
satsumatable13-Aug-07 6:35
satsumatable13-Aug-07 6:35 
QuestionHow to dump more than one row from table into the array !!!! please Help Pin
ANKUR2213-Aug-07 4:41
ANKUR2213-Aug-07 4:41 
AnswerRe: How to dump more than one row from table into the array !!!! please Help Pin
Justin Perez13-Aug-07 5:17
Justin Perez13-Aug-07 5:17 
AnswerRe: How to dump more than one row from table into the array !!!! please Help Pin
bit_cmdr13-Aug-07 6:50
bit_cmdr13-Aug-07 6:50 
QuestionDays of the week Pin
kibromg13-Aug-07 4:25
kibromg13-Aug-07 4:25 
AnswerRe: Days of the week Pin
Justin Perez13-Aug-07 4:32
Justin Perez13-Aug-07 4:32 
GeneralRe: Days of the week Pin
kibromg13-Aug-07 4:44
kibromg13-Aug-07 4:44 

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.