ListView Popup Menu - Show Menu on Item click dont show menu when no data right click on.
Posted on 2006-05-05
i have a listview and im trying to find out when I right click on on any item in the listview i want it to bring the popup menu up. And if I right click in the white area where their is no data i dont want the menu to appear. The data will change on a daily basis.
If Button = 2 Then
If LVCity.SelectedItem.Selected = True Then
.View = lvwReport
.ColumnHeaders.Add , , "ID", 0
.ColumnHeaders.Add , , "City/Town Name", 2000