Selection on disabled ListView control

  • Thread starter Thread starter Yoavo
  • Start date Start date
Y

Yoavo

Hi,
I have a ListView control and I make it disabled when a certain event occur.
My problem is that when the control become disabled, the selection on the
selected item is gone.
(I want that the user will still be able to see the selected item).

Yoav.
 
Yoavo said:
I have a ListView control and I make it disabled when a certain event occur.
My problem is that when the control become disabled, the selection on the
selected item is gone.
(I want that the user will still be able to see the selected item).

Perhaps instead of disabling it, you could use a transparent panel,
the same Size and Location. To 'enable' the ListView, you'd call
BringToFront; to 'disable' the ListView, you'd bring the panel to the
front.
 
Back
Top