473,385 Members | 1,872 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,385 software developers and data experts.

Get GroupBox text color (colour)

H-S
Can anyone help.
I have a C# app developped in C# Express. I have a form which contains
several groupboxs, with text labels.
I also have a standard "label" on the form. I want to set the label
colour to be the same as the groupbox labels.

I can't find a way of reading the group box's text font colour. (Maybe
it is something to do with a theme?)

Surely this should be easy, but I can't find a solution.

//Label is called "pPanelLabel."
//If I have a group box called "fred"
pPanelLabel.Font = fred.Font;
pPanelLabel.ForeColor = fred.ForeColor;
//Above does not affect font colour.
pPanelLabel.ForeColor = Color.Fuchsia;
//Above line colours label pink.

Jun 10 '06 #1
0 2208

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

Similar topics

4
by: Bill Davy | last post by:
To make life easier for my users, I'd like to colour my prompt string (as handed to raw_input()) a different colour to that produced by print. I'm using Python 2.4.1 and IDLE 1.1.1 on Windows XP. ...
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...
4
by: Vincent Finn | last post by:
Can anyone tell me what the difference is? Where I might need one over the other? I know in VB there was a panel and no groupBox in MFC there was a groupBox and no panel But in C# they are...
1
by: Luminal | last post by:
greetings is it possible to change the back color of text on the groupbox control? I change the back color property of groupbox but the label's text back color stay the same (grey). If it is...
1
by: Ames111 | last post by:
I have found about a billions threads on this but not one answer. The groupbox control, how can you set its border colour? I see many people responding with "Capture the onpaint event" but...
9
by: al jones | last post by:
Sorry, it's getting late and I'm tired. I'm trying to fill a richtect box with text derived from the array I was asking about earlier (thank you). I'm not sure what I'm seeing - since most of...
3
by: Marcel Brekelmans | last post by:
Hi, Is this possible? Normally, you get a groupbox with the text at the left side. I would like to have it centered. Is this possible? Thanks
2
by: Steve Teeples | last post by:
I am putting a groupbox in various forms but its text is always blue. It doesn't matter which form I put it on and its background color. Does anyone know how I can specify color that I want for...
8
by: Steve | last post by:
Hi All Is there a way to change the colour of a Groupbox border in VB.net 2005 I want to change it to white Can it be done in the onpaint event? Regards Steve
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.