i have a user control, and it's not drawn correctly, how to debug the drawing? If i set break point, the control will get blocked, i can't see the drawing result instantly? any idea?
What you need is the Graphics Debugger visualizer.
It's best to debug drawing activities with a multi-monitor setup, but there are a handful of other things that can help if you've only got one monitor.
Here's the function that can provide the state for you (requires p/invoke) and the signature from pinvoke.net.
GetKeyState Function() @ MSDN
pinvoke.net: GetKeyState (user32)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With