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

How to show dark font while Not Enabled ?

P: n/a
Rob
I would like to show dark fonts (so that the text is readable and not greyed
out) in a text box, however, I do Not want the text box to be Enabled,
because I do not want the text box to ever have the focus. Can this be
accomplished ? It is looking like this cannot be done.

Thanks
Jul 28 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
why dno't just set the Font property to the color you want
and override keydown to disable keys in the textbox

"Rob" <ro***@yahoo.comwrote in message
news:ys******************************@comcast.com. ..
>I would like to show dark fonts (so that the text is readable and not
greyed out) in a text box, however, I do Not want the text box to be
Enabled, because I do not want the text box to ever have the focus. Can
this be accomplished ? It is looking like this cannot be done.

Thanks

Jul 28 '07 #2

P: n/a
Rob
The standard black font is fine, it is just that when you set Enabled =
False for the textbox, the text is greyed out to the point where it is very
hard to read.

I wonder why the ReadOnly property allows the textbox to have the focus ?

How would you set this ? >and override keydown to disable keys in the
textbox

And would it still allow the textbox to have the focus ?

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:Ob*************@TK2MSFTNGP04.phx.gbl...
why dno't just set the Font property to the color you want
and override keydown to disable keys in the textbox

"Rob" <ro***@yahoo.comwrote in message
news:ys******************************@comcast.com. ..
>>I would like to show dark fonts (so that the text is readable and not
greyed out) in a text box, however, I do Not want the text box to be
Enabled, because I do not want the text box to ever have the focus. Can
this be accomplished ? It is looking like this cannot be done.

Thanks


Jul 28 '07 #3

P: n/a
Tom
You can change the ForeColor and BackColor properties after it has been
disabled, and it iwll change it.

Rob wrote:
The standard black font is fine, it is just that when you set Enabled =
False for the textbox, the text is greyed out to the point where it is very
hard to read.

I wonder why the ReadOnly property allows the textbox to have the focus ?

How would you set this ? >and override keydown to disable keys in the
textbox

And would it still allow the textbox to have the focus ?

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:Ob*************@TK2MSFTNGP04.phx.gbl...
>why dno't just set the Font property to the color you want
and override keydown to disable keys in the textbox

"Rob" <ro***@yahoo.comwrote in message
news:ys******************************@comcast.com ...
>>I would like to show dark fonts (so that the text is readable and not
greyed out) in a text box, however, I do Not want the text box to be
Enabled, because I do not want the text box to ever have the focus. Can
this be accomplished ? It is looking like this cannot be done.

Thanks

Jul 28 '07 #4

P: n/a
Rob
I am using Windows forms and that is not working for me... maybe I am doing
something wrong ?

"Tom" <to**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
You can change the ForeColor and BackColor properties after it has been
disabled, and it iwll change it.
Rob wrote:
>The standard black font is fine, it is just that when you set Enabled =
False for the textbox, the text is greyed out to the point where it is
very hard to read.

I wonder why the ReadOnly property allows the textbox to have the focus ?

How would you set this ? >and override keydown to disable keys in the
textbox

And would it still allow the textbox to have the focus ?

"Rotsey" <ma***********@RemoveThis.optusnet.com.auwrote in message
news:Ob*************@TK2MSFTNGP04.phx.gbl...
>>why dno't just set the Font property to the color you want
and override keydown to disable keys in the textbox

"Rob" <ro***@yahoo.comwrote in message
news:ys******************************@comcast.co m...
I would like to show dark fonts (so that the text is readable and not
greyed out) in a text box, however, I do Not want the text box to be
Enabled, because I do not want the text box to ever have the focus.
Can this be accomplished ? It is looking like this cannot be done.

Thanks

Jul 28 '07 #5

P: n/a
On Sat, 28 Jul 2007 10:34:52 -0400, "Rob" <ro***@yahoo.comwrote:
>I wonder why the ReadOnly property allows the textbox to have the focus ?
So, for example, you can copy the text to the clipboard.
Jul 29 '07 #6

P: n/a
Rob
Ok, I will buy that... but there still appears to be no way to turn off the
"grey out attribute" when a textbox is not enabled....
Thanks...
"Jack Jackson" <ja********@pebbleridge.comwrote in message
news:5i********************************@4ax.com...
On Sat, 28 Jul 2007 10:34:52 -0400, "Rob" <ro***@yahoo.comwrote:
>>I wonder why the ReadOnly property allows the textbox to have the focus ?

So, for example, you can copy the text to the clipboard.

Jul 29 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.