473,394 Members | 1,694 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,394 software developers and data experts.

How to prevent dimming of controls that are not enabled

Is there a way to disable a web form control (change the Enabled
property to false) without the control being dimmed out when it's
rendered? I have quite a few of them on the form and they are hard to
read when they are disabled .
Thanks,

Bill
Cincinnati, OH USA

Sep 25 '06 #1
6 1560
na******************@gmail.com wrote:
Is there a way to disable a web form control (change the Enabled
property to false) without the control being dimmed out when it's
rendered? I have quite a few of them on the form and they are hard to
read when they are disabled .
Thanks,

Bill
Cincinnati, OH USA
Dimming of controls is a well understood and recognised visual cue to
the user that a control has been disabled. Are you proposing to give
the users no clue over which controls are enabled or disabled, until
they click on some and nothing happens?

Damien

Sep 25 '06 #2
Um, well ... yes.
I didn't know this was Microsoft.public.dotnet.frmework.aspnet.abuse
Damien wrote:
na******************@gmail.com wrote:
Is there a way to disable a web form control (change the Enabled
property to false) without the control being dimmed out when it's
rendered? I have quite a few of them on the form and they are hard to
read when they are disabled .
Thanks,

Bill
Cincinnati, OH USA

Dimming of controls is a well understood and recognised visual cue to
the user that a control has been disabled. Are you proposing to give
the users no clue over which controls are enabled or disabled, until
they click on some and nothing happens?

Damien
Sep 25 '06 #3
I'm sorry.

I do agree with the importance of visual cues, but in this particular
app I need more control of the appearance of the disabled check boxes.
When they are dimmed they become very difficult to read against the
chosen background. I do plan to visualize their disabled-ness somehow,
but it has to be more readable. The customer will be looking at 4
columns of check boxes for many hours each day. They have to be
disabled yet still easy on the eyes.

na******************@gmail.com wrote:
Um, well ... yes.
I didn't know this was Microsoft.public.dotnet.frmework.aspnet.abuse
Damien wrote:
na******************@gmail.com wrote:
Is there a way to disable a web form control (change the Enabled
property to false) without the control being dimmed out when it's
rendered? I have quite a few of them on the form and they are hard to
read when they are disabled .
>
>
Thanks,
>
Bill
Cincinnati, OH USA
Dimming of controls is a well understood and recognised visual cue to
the user that a control has been disabled. Are you proposing to give
the users no clue over which controls are enabled or disabled, until
they click on some and nothing happens?

Damien
Sep 26 '06 #4
na******************@gmail.com wrote:
I'm sorry.

I do agree with the importance of visual cues, but in this particular
app I need more control of the appearance of the disabled check boxes.
When they are dimmed they become very difficult to read against the
chosen background. I do plan to visualize their disabled-ness somehow,
but it has to be more readable. The customer will be looking at 4
columns of check boxes for many hours each day. They have to be
disabled yet still easy on the eyes.
Could you put the text for the control into a label control, rather
than using the text property of the checkbox, so that disabling the box
does not affect the text? It would still affect the actual box,
obviously (which would give some cue and continue to have all of the
desirable programmatic behaviours).

To be honest, I can't think of much else, off the top of my head, that
would work well - if you want the control disabled, the browser has to
know this (and at the end of the day, the browser controls the
appearance/behaviour of the control).

Damien

Sep 26 '06 #5
Your point about using labels is a good one. I was hoping to stick with
the check boxes because when the user goes into Edit mode I can simply
enable the Check Box List and then be ready to roll. If I can't make
the check boxes readable when disabled, then I have to create a
boatload of labels by hand and integrate them into the web form.

Also, the check box list is entirely data-driven and the content is
somewhat dynamic, so creating labels is problematic.

Damien wrote:
na******************@gmail.com wrote:
I'm sorry.

I do agree with the importance of visual cues, but in this particular
app I need more control of the appearance of the disabled check boxes.
When they are dimmed they become very difficult to read against the
chosen background. I do plan to visualize their disabled-ness somehow,
but it has to be more readable. The customer will be looking at 4
columns of check boxes for many hours each day. They have to be
disabled yet still easy on the eyes.

Could you put the text for the control into a label control, rather
than using the text property of the checkbox, so that disabling the box
does not affect the text? It would still affect the actual box,
obviously (which would give some cue and continue to have all of the
desirable programmatic behaviours).

To be honest, I can't think of much else, off the top of my head, that
would work well - if you want the control disabled, the browser has to
know this (and at the end of the day, the browser controls the
appearance/behaviour of the control).

Damien
Sep 27 '06 #6
na******************@gmail.com wrote:
Your point about using labels is a good one. I was hoping to stick with
the check boxes because when the user goes into Edit mode I can simply
enable the Check Box List and then be ready to roll. If I can't make
the check boxes readable when disabled, then I have to create a
boatload of labels by hand and integrate them into the web form.

Also, the check box list is entirely data-driven and the content is
somewhat dynamic, so creating labels is problematic.
If you have javascript enabled, and can keep track of all of this, you
can do your disabling on the client side, rather than the server side.
That will disable the checkbox itself, but not the associated text.

The javascript needed is just:
document.getElementById('CheckBox1').disabled = 'disabled';

Damien

Damien wrote:
na******************@gmail.com wrote:
I'm sorry.
>
I do agree with the importance of visual cues, but in this particular
app I need more control of the appearance of the disabled check boxes.
When they are dimmed they become very difficult to read against the
chosen background. I do plan to visualize their disabled-ness somehow,
but it has to be more readable. The customer will be looking at 4
columns of check boxes for many hours each day. They have to be
disabled yet still easy on the eyes.
>
Could you put the text for the control into a label control, rather
than using the text property of the checkbox, so that disabling the box
does not affect the text? It would still affect the actual box,
obviously (which would give some cue and continue to have all of the
desirable programmatic behaviours).

To be honest, I can't think of much else, off the top of my head, that
would work well - if you want the control disabled, the browser has to
know this (and at the end of the day, the browser controls the
appearance/behaviour of the control).

Damien
Sep 27 '06 #7

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

Similar topics

4
by: Adam Parkin | last post by:
Hi all, what I want to do is write a function to toggle the enabled field of all controls within a frame, but what I can't figure out is how does one iterate through all controls in a frame object?...
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)...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
3
by: DBQueen | last post by:
I have a form with lines of controls. On some of the lines there are 3 controls (call them A,B,C); other lines have only control A. The controls have been numbered sequentially (Q20, Q21....Q76)...
4
by: jesse.hartwick | last post by:
Hey group! I have a toolbar with a "DEVELOPER" menu. I have it so that it when the menu title is clicked, a pop-up form will appear if the user has not yet verified that he or she has developer...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
2
by: RichG | last post by:
With the help of Cor Ligthert in a pryor post I was able to make this sub: Public Sub disableControls(ByVal frm As Form) 'this is to create a read only form that has active buttons Dim x As...
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...
2
by: Otis Mukinfus | last post by:
Sorry for the long title. How does one prevent a tab key press from causing the focus to leave a page and move to the navigation bar and tool bars in a browser? I've set the TabIndex on all of...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
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...
0
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...

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.