Click here to Skip to main content
15,884,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends....

I want to draw Vertical line in PrintPreviewControl.
When i press the mouse at any point and move downward or upward and at some point when release the mouse then ,it is not drawing line at the points which was saved at mouse press and Mouse release event .

For Ex. suppose at mouse press event the location was (100,50) and at release event it was (100,150), but in actual it draws line at points (70,30) and (70,140).

the difference between Press and release events's location with respect to drawing location is not fixed some time it is 30,100,46 etc.

Please help how to get accurate position of mouse w.r.t PrintPreviewControl.
I have tried Cursor Property which provide us location of mouse but it also showing
same problem.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900