Questions tagged [disabled-control]

322 questions
8
votes
2 answers

Enable a child control when the parent is disabled

I have a Button containing a Hyperlink, like so: I need the Hyperlink to be enabled, however the Button to be disabled. How can I achieve this? The above…
Justin
  • 84,773
  • 49
  • 224
  • 367
7
votes
5 answers

Clicking disabled select element doesn't trigger click or mousedown events on it's parent

Disabled elements such as doesn't react to click event , I'm trying to wrap them in a
and listen to it's click event. Clicking a disabled triggers the click on it's container
, but I am having problem with…
6
votes
3 answers

How to change the ugly cursor image on disabled radio buttons / checkboxes

I want to remove this ugly red image on hover on disabled controls which appears in most browsers (Chrome, Internet Explorer etc.)
Denis Biondic
  • 7,943
  • 5
  • 48
  • 79
6
votes
3 answers

Delphi Anti Cheat (enable any disabled button)

In my application there are some buttons that I've disabled for a reason. But these buttons are easily enabled by TNTEnforcer. Is there any easy way to prevent this? Tried to pack with some packer / obfuscator, but still can be enabled. What is…
Bianca
  • 973
  • 2
  • 14
  • 33
6
votes
2 answers

Inactive control background color

Is there a way on Windows to retrieve the color used as background color for inactive controls (TextBox, etc.)? Or better yet, the border color too? This is for Windows Forms and I haven't been able to find anything suitable in SystemColors. There…
Joey
  • 344,408
  • 85
  • 689
  • 683
5
votes
2 answers

Disabling Listbox is not changing background color in style

I have this simple style that does not change the ListBox Background when the ListBox is disabled: