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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top