473,513 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to show dark font while Not Enabled ?

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
6 1811
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3449
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing appeared on my news server, so I'm trying again - this time posting a separate copy of the message to each group. I'm thinking this should be...
6
3518
by: bayram guzer | last post by:
hi everybody, i have very strange error. i can not see some of the asp pages on my browser. when i look from view source, all the source is there but browser does not show anything, just an empty page. Does anybody have idea about this ?
0
1500
by: hesing Qiang | last post by:
In Print Process,I use the code,but it is not run correctly On WINDOWS 98 . I didn't know why ...? this.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); ..... graphics.DrawString(strtmp,this.Font,this.brushBlack, DrawStringValidRect(ref...
6
1761
by: greenflame | last post by:
I have been working for some time on a script that will show a matrix with the elements aligned on the right for sometime and finally got it to work. Then I did some patching up and ran the script and it showed a blank page and no error in the status bar. The script is rather long and I call functions that do things that I may not need the...
1
5304
by: mrajanikrishna | last post by:
Hello, I am developing an application in which the user has to select his choice of colors and displaying the images with that color. How can I display color palette to the user and return the selected color? thanx in advance
53
5178
by: Jonas Smithson | last post by:
In his book "CSS: The Definitive Guide" 2nd edition (pgs. 116-117), Eric Meyer has an interesting discussion about "font-size-adjust" that was evidently dropped in CSS 2.1 due to browser non-support. I'm wondering if there's some way I could still get a primitive version of this functionality, because different fonts display at very different...
1
1600
by: filch | last post by:
Hi, I am new to this forum ... so hello to all! I am trying to get a script working which will show or hide a table based on a user checking or unchecking a parent checkbox. This is the script I have come up with so far (note that one of my issues is whether or not you can use an if/else construct inside of a case statement): function...
1
3379
by: neovantage | last post by:
Hey all, I am using a PHP script which creates headings at run time in a sense at page execution. I am stuck a with a very little problem which i am sure i will have the solution from experts. The problem is when it creates transparent PNG format image then and it pixel ate the image. e.g. If i am using a gradient in background then it...
1
3782
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown properties alt in img tag istead of picture . place of the pictures is saved in the database(my database is with mysql) and in home page i fetch...
0
7270
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5703
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.