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

Controls with Text

P: n/a
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
Share this Question
Share on Google+
8 Replies


P: n/a
> 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

P: n/a
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

P: n/a
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

P: n/a
> >>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

P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.