RishadanPort
asked on
CheckedListBox Enabling scrollbar when checkedListBox disabled
When you do this:
checkedListBox.Enable = false;
It also disables the scrollbar.
I am wondering if there is an easy way to enable scrolling when the checkedListBox is disabled.
My main purpose of doing checkedListBox.Enable = false, is so the user can not currently
check/uncheck items.
checkedListBox.Enable = false;
It also disables the scrollbar.
I am wondering if there is an easy way to enable scrolling when the checkedListBox is disabled.
My main purpose of doing checkedListBox.Enable = false, is so the user can not currently
check/uncheck items.
another way is to manage the checklistbox's ItemCheck event, like this:
private void CheckedListBox1_ItemCheck( Object sender, ItemCheckEventArgs e)
{
e.NewValue = e.CurrentValue;
}
private void CheckedListBox1_ItemCheck(
{
e.NewValue = e.CurrentValue;
}
ASKER
i don't see how this enables scrolling while the checklistbox.Enable feature is set to false.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ah I see thanks.
You could also change the BG colour (if you wished) to make it look disabled...