|
-
Apr 8th, 2001, 10:06 PM
#1
Thread Starter
Lively Member
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
-
Apr 8th, 2001, 10:12 PM
#2
A simple way :
Code:
Private Sub ListView1_GotFocus()
Command1.SetFocus
End Sub
or any other control on your form...
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 8th, 2001, 10:32 PM
#3
Thread Starter
Lively Member
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
-
Apr 8th, 2001, 10:34 PM
#4
what is wrong with just disabling it? Just a visual preference?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 8th, 2001, 10:42 PM
#5
Thread Starter
Lively Member
-
Apr 8th, 2001, 11:01 PM
#6
PowerPoster
Try subclassing the window and catching when the control receives the focus.
-
Apr 9th, 2001, 03:15 AM
#7
Fanatic Member
As a suggestion can you make the listbox the child of a picturebox?
Code:
Me.Picture1.Enabled = False
-
Apr 9th, 2001, 08:48 AM
#8
Thread Starter
Lively Member
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.
-
Apr 9th, 2001, 09:47 AM
#9
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|