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 6 1815
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.co mwrote 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
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.optu snet.com.auwrot e in message
news:Ob******** *****@TK2MSFTNG P04.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.co mwrote 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
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.optu snet.com.auwrot e in message
news:Ob******** *****@TK2MSFTNG P04.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.co mwrote in message news:ys******* *************** ********@comcas t.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
I am using Windows forms and that is not working for me... maybe I am doing
something wrong ?
"Tom" <to**********@g mail.comwrote in message
news:%2******** ********@TK2MSF TNGP03.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.optu snet.com.auwrot e in message news:Ob******* ******@TK2MSFTN GP04.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.co mwrote in message news:ys****** *************** *********@comca st.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
On Sat, 28 Jul 2007 10:34:52 -0400, "Rob" <ro***@yahoo.co mwrote:
>I wonder why the ReadOnly property allows the textbox to have the focus ?
So, for example, you can copy the text to the clipboard.
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********@peb bleridge.comwro te in message
news:5i******** *************** *********@4ax.c om...
On Sat, 28 Jul 2007 10:34:52 -0400, "Rob" <ro***@yahoo.co mwrote:
>>I wonder why the ReadOnly property allows the textbox to have the focus ?
So, for example, you can copy the text to the clipboard.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 fairly easy to accomplish - a quick and
dirty ... what? ... script? program?
|
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 ?
|
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 ,graphics,this.Font ,
|
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 functiosn
for but they are there because I so that task so many times that I jsut
made it into a...
|
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
| |
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 optical
sizes for the same nominal sizes.
For example, suppose I want type to display in...
|
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 showIt($id) {
alert("ID is : $id");
switch ($id) {
|
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 vary in color range. Now when i used that php script it generates image successfully but it pixel ate...
|
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 properties of the product and address of place that pictures is located
output of the code in the...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |