473,382 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Controls with Text

Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.

thanks!
Jul 17 '05 #1
8 5674
> Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.


You could put the controls on a container (say, a Frame) and disable the
Frame. However, unless you signal that the control is disabled, this
might be confusing to the user (how is he/she to know when they can use
the control and when they can't?).

Rick - MVP

Jul 17 '05 #2
true, but it is so hard to read when everything is dimmed like that.
btw, the frame idea does work! thank you.
Rick Rothstein wrote:
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.

You could put the controls on a container (say, a Frame) and disable the
Frame. However, unless you signal that the control is disabled, this
might be confusing to the user (how is he/she to know when they can use
the control and when they can't?).

Rick - MVP

Jul 17 '05 #3
B
Another way would be to use labels to show the content, and replace them
with textboxes at the appropiate time.

B

Rick Rothstein schreef:
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.

You could put the controls on a container (say, a Frame) and disable the
Frame. However, unless you signal that the control is disabled, this
might be confusing to the user (how is he/she to know when they can use
the control and when they can't?).

Rick - MVP

Jul 17 '05 #4
> >>Is it possible to disable a control with Text (Textbox, combobox
etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till ihit the edit key, not a problem, cept they are kind of hard to read
while disabled.

You could put the controls on a container (say, a Frame) and disable the Frame. However, unless you signal that the control is disabled, this
might be confusing to the user (how is he/she to know when they can use the control and when they can't?).

Another way would be to use labels to show the content, and replace

them with textboxes at the appropiate time.


Unless the TextBoxes are multi-lined and have scroll bars.

Rick - MVP

Jul 17 '05 #5

"B" <no****@nospam.com> wrote in message
news:dG*******************@amsnews05.chello.com...
Another way would be to use labels to show the content, and replace them
with textboxes at the appropiate time.
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.



I have found it useful to Lock the text boxes and change the background color,
instead of disabling them. This allows the user to for instance copy the text,
but still provides a visual cue that it is not editable. Try changing the
background to gray when it is locked, and to white when it is unlocked.
Jul 17 '05 #6
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.


How about putting another transparent control (ie, a transparent label or
something) over top the text box?
I think that works. Been a while..

jody
Jul 17 '05 #7
I ended up useing the frame method... works beautifully! thanks!

schmendrick wrote:
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.

thanks!

Jul 17 '05 #8
Locking the text boxes and using a different color scheme is a good option
since it gives the user a visual cue. I think the other method of using a
frame is ok, but even still giving the user a cue when it's ok to edit
should be used. The user may thing the application has hung up and kill the
app or reboot the machine.

-Bill

"Steve Gerrard" <my********@comcast.net> wrote in message
news:6s********************@comcast.com...

"B" <no****@nospam.com> wrote in message
news:dG*******************@amsnews05.chello.com...
Another way would be to use labels to show the content, and replace them
with textboxes at the appropiate time.
Is it possible to disable a control with Text (Textbox, combobox etc)
but not have the text fade?

I have a bunch of text boxes for a database, want them disabled till i
hit the edit key, not a problem, cept they are kind of hard to read
while disabled.

I have found it useful to Lock the text boxes and change the background

color, instead of disabling them. This allows the user to for instance copy the text, but still provides a visual cue that it is not editable. Try changing the
background to gray when it is locked, and to white when it is unlocked.

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
1
by: bill yeager | last post by:
I did some more debugging and found the following: 1) I placed the following code in the button event just to see if I could cycle thru the datagrid control collection: <code> Dim strhello As...
4
by: Bass Pro | last post by:
Hi, I am creating textbox, radiobuttonlist and checkboxlist dynamically depending on data from a table. It is a questionnaire. I add the control on a Panel control during the 1st load_page event....
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
11
by: VJ | last post by:
I am looking to have 2 Tab Controls on a Windows Forms.. One with Tabs on Top and another with Tabs on the side... I want them both to occupy the entire area of the form, but I need the Tab...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
0
JimWu
by: JimWu | last post by:
I have some problems in my code. The stutiation illustrate as the followsing statement. I use two pages, one, named "upload.aspx", is including several general html input tag, whose type are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.