troubleshooting Question

Why does the rubber band rectangle sometimes leave marks on my screen?

Avatar of bmihura
bmihura asked on
C#
10 Comments1 Solution984 ViewsLast Modified:
I used some example code from Microsoft to draw a rubber band rectangle when I drag my mouse:

http://support.microsoft.com/kb/314945

I modified that code so that when the rectangle is dragged over a small PictureBox in my form, the PictureBox is moved out of the way. When that happens, the rubber band rectangle leaves marks on my screen! The bigger my form is, the worse the problem is; so this problem might not be reproducible with a really good graphics card.

Here's my project written in Microsoft Visual Studio 2008 then zipped up if anybody would like to try it:

www.lctechnology.com/FocusRectangleProblem.zip

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros