Sups
I have this decleration:
VB Code:
Public Sub ShowBoard(Key As String, List As ListView) ... [B]If frmMain[COLOR=red].List[/COLOR].SelectedItem.Index <> 1 Then[/B] ... End Sub
I have two ListView controls, and in the Click event, I want the two controls to performe the same action. I wrote 1 public sub as you can see, and i'm passing the ListView control as a parameter:
VB Code:
Private Sub List1_Click() Call ShowBoard("Mouse", List1) End Sub
The problem is that I get an Error that it cant recodnize the control: "Method or data member not found"
How can I resolve that?




Reply With Quote