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:
VB Code:
  1. If ListView1.ListItems.Count = 0 Then mnuHidden.Visible = False
but I think it's not the way to go, as the menu is (very briefly) shown before is becomes invisible.