|
-
January 5th, 2003, 04:58 PM
#1
disable menus by selection
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
-
January 6th, 2003, 05:51 PM
#2
menu_item.enable = true
menu_item.enable = false
-
January 7th, 2003, 01:48 PM
#3
One way to check if something is selected in the Listview is something like this.....
Code:
If ListView1.SelectedIndices.Count > 0 Then
menu_item.Enabled = True
Else
menu_item.Enable = False
End If
/Leyan
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
|