473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Controls in other controls

gv
Hi all,

This is probably a easy question but has me stuck.

simple I have a label control on a panel control but the label control is
using the text color from the panel control.
I want to se it's own color. so how do I set the label control to
not inherit the color properties of the panel control?

thanks
GV
Jul 21 '05 #1
3 1074
gv
Actually the label control is on a tabcontrol which is on a panel control.

thanks
GV

"gv" <vi*****@musc.edu> wrote in message
news:ea*************@TK2MSFTNGP12.phx.gbl...
Hi all,

This is probably a easy question but has me stuck.

simple I have a label control on a panel control but the label control is
using the text color from the panel control.
I want to se it's own color. so how do I set the label control to
not inherit the color properties of the panel control?

thanks
GV

Jul 21 '05 #2
You should then expose the background color of the label as a property of
the panel.

public Color LabelColor{set{this.myLabel.BackgroundColor=value} }

"gv" <vi*****@musc.edu> schrieb im Newsbeitrag
news:ea*************@TK2MSFTNGP12.phx.gbl...
Hi all,

This is probably a easy question but has me stuck.

simple I have a label control on a panel control but the label control is
using the text color from the panel control.
I want to se it's own color. so how do I set the label control to
not inherit the color properties of the panel control?

thanks
GV

Jul 21 '05 #3
gv
thanks for your help,

I figured out what the problem was.
I'm making the panel enabled = false which changes the color. so I just hide
that label until
I make the panel.enabled = true.

thanks
Gerry

"cody" <de********@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
You should then expose the background color of the label as a property of
the panel.

public Color LabelColor{set{this.myLabel.BackgroundColor=value} }

"gv" <vi*****@musc.edu> schrieb im Newsbeitrag
news:ea*************@TK2MSFTNGP12.phx.gbl...
Hi all,

This is probably a easy question but has me stuck.

simple I have a label control on a panel control but the label control is
using the text color from the panel control.
I want to se it's own color. so how do I set the label control to
not inherit the color properties of the panel control?

thanks
GV


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam Nowotny | last post by:
I've created library with some "user controls" and they all showed up in the toolbox, so it is easy to drag them to a form in Forms Designer. Now we want to use the controls in our main project...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
0
by: Mark Johnson | last post by:
Sometimes Controls that have been added to a GroupBox do not show up. What I am doing : 1) I am not using the designer, but create all the Controls per hand: groupBoxProdukt_01 = new...
6
by: Ben | last post by:
Hi I've got a problem with a custon control that inherits form the UserControl class and that used the overlib javascript library. The control works well in a standard form but when I used it in...
12
by: Daniel Walzenbach | last post by:
Hi, I want to display a Label in a DataGrid according to some condition. I therefore check whether the condition is true in the ItemDateBound EventHandler of the DataGrid. Unfortunately the...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
15
by: Arpan | last post by:
Consider the following code which retrieves data from a SQL Server 2005 DB table & displays it in a DataGrid: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.