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

Please Help Me With BackColor Property

Status
Not open for further replies.

dotnetprogrammer

Programmer
Aug 17, 2000
77
US
Please HELP me setting BackColor on a form:
I have created a form. Named it Form1. The color of Form1 is set to blue.
The form has a number of labels, let’s call those lblFormXs, where X is 1,2,3,4… etc.
The form also has a Tab Control, named: TabControl1.
Also, TabControl1 has some labels on it. Let’s call those lblTabXs, where X represents 1,2,3,… etc.

Now, I need to set the BackColor property of lblFormXs to the BackColor of Form1 and I need to set the BackColor of lblTabXs to the BackColor of TabControl1.
How do I do it in code?
-fred
 
Maybe something like this

Label1.BackColor = Form1.BackColor
Label2.BackColor = SSTab1.BackColor

David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top