Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird Artifacts When Making Custom Button OnPaint

Status
Not open for further replies.

Moregelen

Programmer
Sep 10, 2012
1,222
0
0
US
So I got a bit bored at work and decide to waste an hour making Minesweeper since our internal IT ripped out all the built in games. Worked fine but I noticed an odd little .. bug.

If I move the form horizontally between my bottom two monitors (I have four monitors in a 2x2 configuration), the buttons start showing artifacts. I've never really done anything like this before (overriding the OnPaint of the button to make a customized look), so I'm not sure what I'm doing wrong.

Even stranger... I can move vertically between all of my monitors without issues, and I can move horizontally between my top two monitors without issues.

Here is a screenshot of what I'm talking about:

snip_20170906085241_amhv92.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top