Solved

how to reset background color on a label

Posted on 2010-11-30
2
673 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
ID: 34240677
.BackColor = Color.FromKnownColor(KnownColor.Control)
0
 

Author Closing Comment

by:Stewart1206
ID: 34240734
thank you that worked like a charm :)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with exporting to excel 4 36
Expression Evaluater 3 38
ASP.NET (VB) return a record 2 38
Get month and date in a format 4 32
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

837 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