NileshChauhan
NileshChauhan

Reputation: 5569

WinForm Controls behave differently on .Enabled = false

I have some controls on a WinForm namely: CheckedListBox, ListBox,ListView, TreeView, TextBox.

On

ControlName.Enabled = false;

I have found following results:

Why is this behavor? Is it a intented or Bug? and how to unify behavior?

Upvotes: 1

Views: 342

Answers (1)

Gulzar Nazim
Gulzar Nazim

Reputation: 52208

AFAIK, this is by design unless you override the default behavior.

This is not exactly related but I thought I will post a link to another question.

How do I make a Windows Forms control readonly ?

Upvotes: 2

Related Questions