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

What text property setting controls the "look" of the text in label attached to disabled textbox?

P: n/a
MLH
You know how the text in the attached label
sort of 'greys out' when you click something
that sets MyTextbox.Enabled = False?

I would like to make a label's text look like
that? How do I do it? It look sort-a-like sunken
text or shadowed - I don't know what.
Nov 13 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a

"MLH" <CR**@NorthState.net> schreef in bericht news:sf********************************@4ax.com...
You know how the text in the attached label
sort of 'greys out' when you click something
that sets MyTextbox.Enabled = False?

I would like to make a label's text look like
that? How do I do it? It look sort-a-like sunken
text or shadowed - I don't know what.


Simply set YourTextbox.enabled = False
Although I am sure this will do the 'trick', I am not sure this is what you want ;-)

But please set SubjectLine.Long = False
I am sure this will help me to read and answer your questions ...

Arno R
Nov 13 '05 #2

P: n/a
MLH wrote:
You know how the text in the attached label
sort of 'greys out' when you click something
that sets MyTextbox.Enabled = False?

I would like to make a label's text look like
that? How do I do it? It look sort-a-like sunken
text or shadowed - I don't know what.


if you do that, you may risk confusing your users. Greyed-out text is
meant to be (temporarily, not permanently) inactive.

I can't seem to reproduce the look anyway. Labels cannot be active, and
hence have no greyed-out setting. Labels to textboxes of course do, but
the look is controlled from the textbox in those cases.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #3

P: n/a
MLH
Yes, I know. I have 2 labels on each side of a textbox that are BOTH
related to the t'box. Since I cannot attach both of them to the t'box
control, I have to do something about 'graying' out the 2nd label when
the textbox goes disabled./

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

if you do that, you may risk confusing your users. Greyed-out text is
meant to be (temporarily, not permanently) inactive.

I can't seem to reproduce the look anyway. Labels cannot be active, and
hence have no greyed-out setting. Labels to textboxes of course do, but
the look is controlled from the textbox in those cases.


Nov 13 '05 #4

P: n/a
MLH wrote:
Yes, I know. I have 2 labels on each side of a textbox that are BOTH
related to the t'box. Since I cannot attach both of them to the t'box
control, I have to do something about 'graying' out the 2nd label when
the textbox goes disabled./


Use one larger label.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5

P: n/a
MLH wrote:
Yes, I know. I have 2 labels on each side of a textbox that are BOTH
related to the t'box. Since I cannot attach both of them to the t'box
control, I have to do something about 'graying' out the 2nd label when
the textbox goes disabled./


Ar, I see that.
Tried this at home:
* cutting and pasteing the label onto the control (no, of course you've
done that)
* setting the Parent property from code (no, 438)

Well, then, I thought, if Mozes is too busy with the mountain, let's
have another mountain. What if you tack the second label onto a second
*textbox* which you then set to have no tabstop, width=0, transparent
border etc. all but hiding it. You can enable/disable it together with
the main control, and it will then disable its label.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #6

P: n/a
MLH
That's clever. I like it. Thx.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Well, then, I thought, if Mozes is too busy with the mountain, let's
have another mountain. What if you tack the second label onto a second
*textbox* which you then set to have no tabstop, width=0, transparent
border etc. all but hiding it. You can enable/disable it together with
the main control, and it will then disable its label.


Nov 13 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.