The ZAZ Blog: When all you have is a chicken and a rocket launcher, make some really badass scrambled eggs.

Archives: October 11, 2008
« October 6, 2008 | Home | October 12, 2008 »

Custom Controls: Finding your global screen bounds

I find myself writing a fair amount of custom controls. Frequently, I find myself wanting to find the position of the mouse relative to my control. The MouseDown, MouseDrag, etc. events have this info, but if you need this in the Paint event, you must either save it to a property or get it from the system. We're exploring the latter, as it's not as simple as you might think.

[ Read More | Accepting Comments (0) | Accepting Pings (0) ]

Disclaimer: I am currently an employee of REAL Software. My comments and opinions are mine alone and do not represent those of my employer. My posts are not official REAL Software communications, and may contain information that is incorrect or misleading.