example:
Private Sub ListView1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ListView1.SelectedIndexChanged
ControlContextMnu()
End Sub
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
ControlContextMnu()
End Sub
Private Sub ControlContextMnu()
Dim ctmtem As MenuItem
If Me.ListView1.SelectedItems.Count = 0 Then
For Each mnuitem In ContextMenu1.MenuItems
mnuitem.Visible = False
Next
Else
For Each mnuitem In ContextMenu1.MenuItems
mnuitem.Visible = True
Next
End If
End Sub
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---