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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphical button background problem

Status
Not open for further replies.

mbrink

Technical User
Jul 5, 2002
13
US
I'm making a game with a grid of grgaphical buttons, using the button background colors to indicate the start points for the players and computer opponent. Unfortunately, if a game ends with the player clicking one of the buttons in the grid and starts a new game, the last button clicked in the previous game is textured with whatever was in that section of the screen before the form loaded this time. I've tried, in both the form_load and form_activate functions, setting the background color of the button grid control array and making the buttons visible, but this had no effect. Any ideas what's going on and how to fix it?
 
Found my own solution on this, no thanks to you people! :p

Anyway, in case someone else comes across this problem, set the button's MaskColor the same as its BackColor and set UseMaskColor to 'True'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top