listview control used as a reference parameter - resulting "... does not contain a definition" error
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?
Roei BarPosted Oct 7, 2009, 4:47 PM
x=listname.LastSelectedIndex
Mike PischkePosted Oct 7, 2009, 3:16 PM