-
When you:
Listview1.Enabled = False
it will obviously disable the 'Listview1' preventing anymore selecting e.t.c. of it's contents (report view).
But this causes the listview display to be 'greyed' out.
Is it possible to still disable the listview but NOT have it greyed out, so it's still white ?
TIA
-
A simple way :
Code:
Private Sub ListView1_GotFocus()
Command1.SetFocus
End Sub
or any other control on your form...
-
That doesn't work.
If 3 items were selected from list, a certain operation is on item 1, clicking item 4 using above method would still deselect items 2 and 3.
I still need it disabled so nothing else can be selected/de-selected......
Anyone ?
TIA
-
what is wrong with just disabling it? Just a visual preference?
-
-
Try subclassing the window and catching when the control receives the focus.
-
As a suggestion can you make the listbox the child of a picturebox?
Code:
Me.Picture1.Enabled = False
-
Ahh that's it.
As it happens it was already a child in a picture box, disable the picture box disables clicking of the listview but left it 'normal' looking, thanks JamesM.
-