Click to See Complete Forum and Search --> : disable menus by selection


rgreen2002
January 5th, 2003, 03:58 PM
I have s imple and stupid question to ask. I have some menu items that are disabled by default, I want them to enable when items in a listview are selected and then disbale again when nothing is selected. I just can't figure it out.

Please help
--
Regards,
Russ Green

Jym
January 6th, 2003, 04:51 PM
menu_item.enable = true

menu_item.enable = false

Athley
January 7th, 2003, 12:48 PM
One way to check if something is selected in the Listview is something like this.....

If ListView1.SelectedIndices.Count > 0 Then
menu_item.Enabled = True
Else
menu_item.Enable = False
End If

/Leyan