dotnetprogrammer
Programmer
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
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