Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
OriginalGriff13-Mar-10 9:24
mveOriginalGriff13-Mar-10 9:24 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 9:30
sitebuilderLuc Pattyn13-Mar-10 9:30 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 9:33
boreland13-Mar-10 9:33 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 9:45
sitebuilderLuc Pattyn13-Mar-10 9:45 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 9:32
boreland13-Mar-10 9:32 
AnswerRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 9:45
sitebuilderLuc Pattyn13-Mar-10 9:45 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 10:07
boreland13-Mar-10 10:07 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 10:53
sitebuilderLuc Pattyn13-Mar-10 10:53 
For a window on the desktop it would be
window.Location=Control.MousePosition;

and for a moving Control held in some container Control it is
movingControl.Location=containingControl.PointToClient(Control.MousePosition);

as Control.PointToClient[^] translates screen coordinates to coordinates relative to the Control.


BTW: if you apply your (or my) logic to just one object, there is no way it could oscillate. And generally it is wise to test new techniques on one object only, until it works satisfactorily; this helps observation and understanding of what is going on.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 10:58
boreland13-Mar-10 10:58 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 11:01
sitebuilderLuc Pattyn13-Mar-10 11:01 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 11:11
boreland13-Mar-10 11:11 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Luc Pattyn13-Mar-10 11:16
sitebuilderLuc Pattyn13-Mar-10 11:16 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
OriginalGriff13-Mar-10 21:46
mveOriginalGriff13-Mar-10 21:46 
AnswerRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
Abhinav S13-Mar-10 6:22
Abhinav S13-Mar-10 6:22 
GeneralRe: Moving (animating) a form using mouse coordinates similar to a tooltip. Pin
boreland13-Mar-10 6:40
boreland13-Mar-10 6:40 
QuestionMulti Finance Freeware / Shareware Pin
Endien13-Mar-10 4:58
Endien13-Mar-10 4:58 
AnswerRe: Multi Finance Freeware / Shareware Pin
Saksida Bojan13-Mar-10 5:43
Saksida Bojan13-Mar-10 5:43 
GeneralRe: Multi Finance Freeware / Shareware Pin
Endien13-Mar-10 6:20
Endien13-Mar-10 6:20 
QuestionHow to convert lat/long values to mils??? Pin
v17.poornima13-Mar-10 4:41
v17.poornima13-Mar-10 4:41 
AnswerRe: How to convert lat/long values to mils??? Pin
Saksida Bojan13-Mar-10 5:41
Saksida Bojan13-Mar-10 5:41 
GeneralRe: How to convert lat/long values to mils??? Pin
v17.poornima13-Mar-10 6:08
v17.poornima13-Mar-10 6:08 
GeneralRe: How to convert lat/long values to mils??? Pin
Saksida Bojan13-Mar-10 6:15
Saksida Bojan13-Mar-10 6:15 
GeneralRe: How to convert lat/long values to mils??? Pin
v17.poornima13-Mar-10 17:48
v17.poornima13-Mar-10 17:48 
GeneralRe: How to convert lat/long values to mils??? Pin
Saksida Bojan13-Mar-10 18:51
Saksida Bojan13-Mar-10 18:51 
AnswerRe: How to convert lat/long values to mils??? Pin
PIEBALDconsult13-Mar-10 14:45
mvePIEBALDconsult13-Mar-10 14:45 

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.