When I right-click on a listview, a menu pops up with a number of options such as "delete the selected item" etc. Now, I want to prevent the menu from popping up when the listview is empty. So far I've used:
but I think it's not the way to go, as the menu is (very briefly) shown before is becomes invisible.VB Code:
If ListView1.ListItems.Count = 0 Then mnuHidden.Visible = False




Reply With Quote