سلام
من میخوام هر کدام از ایتم های listview1 را کلیک میکنم همون در listview2 خودکار کلیک بشه
دقیقا مثل این کد در listbox
If ListBox1.SelectedIndex <> ListBox2.SelectedIndex Then
ListBox2.SelectedIndex = ListBox1.SelectedIndex
EndIf
سلام
من میخوام هر کدام از ایتم های listview1 را کلیک میکنم همون در listview2 خودکار کلیک بشه
دقیقا مثل این کد در listbox
If ListBox1.SelectedIndex <> ListBox2.SelectedIndex Then
ListBox2.SelectedIndex = ListBox1.SelectedIndex
EndIf
سلام
هر دوتا Listview باخاصیت multiselect فالس باشن false
Private Sub ListView1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp
ListView2.Focus()
End Sub
Private Sub ListView1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.Click
ListView2.Items(ListView1.SelectedIndices.Item(0)) .Selected = True
End Sub