Weird location while moving WinForms picbox

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-04-27T22:25:49Z Indexed on 2010/04/27 22:53 UTC
Read the original article Hit count: 242

Filed under:
|

I couldnt figure the problem out so after debugging i finally decide to write the below.

Why is the location jumping around?! 147 86 to 294 212 then back every callback?

pic.MouseMove += my_MouseMove;

my_MouseMove(object sender, MouseEventArgs e)

Console.WriteLine("{0} {1} {2} {3}", e.X, e.Y, e.Location.X, e.Location.Y);

147 86 147 86
294 212 294 212
147 86 147 86
294 212 294 212
147 86 147 86
294 212 294 212

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET