By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,422 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,422 IT Pros & Developers. It's quick & easy.

label custom

P: 2
I created a custom label so I can write characters in apex and also in this way:

ex.: Ac.

Now I have a problem: when my CustomLabel is in a disabled groupBox , the label does not appear disabled because the text I write with DrawText is

g.DrawString(text,usedFont, new SolidBrush(this.ForeColor),startPosition);

How can I solve this problem? How can I render a disabled label?

What is the color of a disabled label? What have I to write in OnPaint?

Jun 26 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 2.5K+
P: 4,871
Welcome to TSDN. The color of disabled labels is usually white in this way they match the background of the page. Although some disabled labels are transparent so that they match any background color. If you drag your mouse over the page you can usually find them. Otherwise the server side code has not sent them to the client, so they do not have color.
Jun 26 '07 #2

P: 2
Thanks, kenobewan, but this is a windows application...
what can I do in a windows application?
Jun 26 '07 #3

Expert 2.5K+
P: 4,871
This is the reason we ask for your platform. I am a web guy but some things are the same. My belief is that if your control is not visible it would not have color. Anyone else?
Jun 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.