Solved

how to reset background color on a label

Posted on 2010-11-30
2
661 Views
Last Modified: 2013-11-27
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
Comment
Question by:Stewart1206
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
Comment Utility
.BackColor = Color.FromKnownColor(KnownColor.Control)
0
 

Author Closing Comment

by:Stewart1206
Comment Utility
thank you that worked like a charm :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now