Mike Pischke

Mike Pischke

  • NA
  • 11
  • 0

listview control used as a reference parameter - resulting "... does not contain a definition" error

Oct 7 2009 12:56 PM
public static void getitem(ref Form formname, ref ListView listname) { int x; x=formname.listname.LastSelectedIndex; } When compiled, yields: System.Windows.Forms.Form does not contain a definition for 'listname'. Not sure if this is a syntax issue in how I'm using the listview reference, or what exactly the problem is?

Answers (2)