Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
AnswerRe: Drag Event Pin
Ravi Bhavnani19-Oct-07 16:39
professionalRavi Bhavnani19-Oct-07 16:39 
GeneralRe: Drag Event Pin
MasterSharp19-Oct-07 16:50
MasterSharp19-Oct-07 16:50 
AnswerRe: Drag Event Pin
Ravi Bhavnani19-Oct-07 16:57
professionalRavi Bhavnani19-Oct-07 16:57 
AnswerRe: Drag Event [modified] Pin
Mike Hankey20-Oct-07 10:33
mveMike Hankey20-Oct-07 10:33 
Questionline to mouse Pin
MasterSharp19-Oct-07 11:23
MasterSharp19-Oct-07 11:23 
AnswerRe: line to mouse Pin
led mike19-Oct-07 11:37
led mike19-Oct-07 11:37 
GeneralRe: line to mouse Pin
MasterSharp19-Oct-07 11:50
MasterSharp19-Oct-07 11:50 
GeneralRe: line to mouse Pin
Luc Pattyn19-Oct-07 12:03
sitebuilderLuc Pattyn19-Oct-07 12:03 
Hi,

some remarks:

1. Are you sure your tick is executed at all? Maybe you did something wrong with the timer.

2. Invalidate() will fail when not executed by the thread that created its object (this).
Make sure you are using the right kind of timer.

3. It is a bad idea to have a Paint routine that uses volatile inputs such as MousePosition:
the Paint handler will be called when you call Invalidate(), but also when Windows decides
it is necessary (e.g. because you are dragging another window over it, at which time the
mouse position does not make sense to your Paint at all).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: line to mouse Pin
MasterSharp19-Oct-07 12:06
MasterSharp19-Oct-07 12:06 
Questionhow to sort an int arraylist Pin
Daniel_Logan19-Oct-07 11:10
Daniel_Logan19-Oct-07 11:10 
AnswerRe: how to sort an int arraylist Pin
garyshort19-Oct-07 11:32
garyshort19-Oct-07 11:32 
GeneralRe: how to sort an int arraylist Pin
Daniel_Logan19-Oct-07 12:00
Daniel_Logan19-Oct-07 12:00 
GeneralRe: how to sort an int arraylist Pin
garyshort19-Oct-07 12:07
garyshort19-Oct-07 12:07 
GeneralRe: how to sort an int arraylist Pin
Daniel_Logan19-Oct-07 12:12
Daniel_Logan19-Oct-07 12:12 
GeneralRe: how to sort an int arraylist Pin
garyshort19-Oct-07 12:24
garyshort19-Oct-07 12:24 
GeneralRe: how to sort an int arraylist Pin
Daniel_Logan19-Oct-07 12:29
Daniel_Logan19-Oct-07 12:29 
GeneralRe: how to sort an int arraylist Pin
garyshort19-Oct-07 13:07
garyshort19-Oct-07 13:07 
GeneralRe: how to sort an int arraylist Pin
Daniel_Logan19-Oct-07 13:10
Daniel_Logan19-Oct-07 13:10 
GeneralRe: how to sort an int arraylist Pin
Daniel_Logan19-Oct-07 13:12
Daniel_Logan19-Oct-07 13:12 
GeneralRe: how to sort an int arraylist Pin
garyshort19-Oct-07 13:16
garyshort19-Oct-07 13:16 
GeneralRe: how to sort an int arraylist Pin
kartzforu20-Oct-07 1:17
kartzforu20-Oct-07 1:17 
GeneralRe: how to sort an int arraylist Pin
Guffa19-Oct-07 20:50
Guffa19-Oct-07 20:50 
GeneralRe: how to sort an int arraylist Pin
Ravi Bhavnani19-Oct-07 16:59
professionalRavi Bhavnani19-Oct-07 16:59 
GeneralRe: how to sort an int arraylist Pin
garyshort20-Oct-07 6:20
garyshort20-Oct-07 6:20 
GeneralRe: how to sort an int arraylist Pin
Ravi Bhavnani20-Oct-07 7:07
professionalRavi Bhavnani20-Oct-07 7:07 

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.