Sups
I have this decleration:
VB Code:
  1. Public Sub ShowBoard(Key As String, List As ListView)
  2. ...
  3. [B]If frmMain[COLOR=red].List[/COLOR].SelectedItem.Index <> 1 Then[/B]
  4. ...
  5. 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:
  1. Private Sub List1_Click()
  2.     Call ShowBoard("Mouse", List1)
  3. 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?