• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 694
  • Last Modified:

how to reset background color on a label

hello
 I have a slot machine program that changes the background colors of labels but i need to reset them to their default color when a new game starts how do i do that in VB8.  gray and light gray are not the right shade. i have been using the following to change colors

slotlabel1.backcolor = color.green    
0
Stewart1206
Asked:
Stewart1206
1 Solution
 
Erick37Commented:
.BackColor = Color.FromKnownColor(KnownColor.Control)
0
 
Stewart1206Author Commented:
thank you that worked like a charm :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now