Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55343

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to compute mouse arrow coordinates to draw on picture? Please help Posted by MIRKOSOFT on 15 Nov 2012 at 3:17 AM
Hi!

I have main problem in application which draws shapes "by hand" on Pictue Box...

When I'm moving mouse arrow, coordinates of arrow have different values than coordinates of point on the picture box.

I tried to substract form position, substract form edges, divide...

Example: when I move mouse arrow right 20 pixels, coordinates to draw increases 30 pixels... and when I substract form position its near, but not at the same position like mouse arrow...

Please help me anybody, I'm thankful for all.

Miro



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.