Dear all
i need help with listview . i have 5 columns and i have 4 menustrips. i want something like below
If ListView1.SelectedItems(0).SubItems(0).Text = "Advance" Then
t2.Enabled = False
t3.Enabled = False
t4.Enabled = False
ElseIf ListView1.SelectedItems(0).SubItems(0).Text = "Access" Then
t1.Enabled = False
t3.Enabled = False
t4.Enabled = False
ElseIf ListView1.SelectedItems(0).SubItems(0).Text = "EN\DN" Then
t1.Enabled = False
t2.Enabled = False
t4.Enabled = False
ElseIf ListView1.SelectedItems(0).SubItems(0).Text = "Drive" Then
t1.Enabled = False
t2.Enabled = False
t3.Enabled = False
Else
t1.Enabled = False
t2.Enabled = False
t3.Enabled = False
t4.Enabled = False
End If
t1 t2 t3 t4 are the submenu mains of menustrips
mouse right click must read the first column of listview and open the menu as per it. suppose
1st colums is advance so right click must only open the menu of advance........if the 2nd row is for access so when i click right of mouse if must open access menu..
pplz help and sorry for bad english.