R
rhaazy
Using C# and VS 2003
I have two forms and a treeView, the treeView is on Form1
On Form1
Form frmAddOrgSystem = new frmAddOrgSystem();
frmAddOrgSystem.ShowDialog();
on frmAddOrgSystem
orgsystemid = Form1.treeView2.SelectedNode.Index.ToString();
I get this error:
An object reference is required for the nonstatic field... etc etc
I know I need to do something like pass a reference of Form1 to
frmAddOrgSystem, but I cant find any real clear eample of this online,
any help would be appreciated!
I have two forms and a treeView, the treeView is on Form1
On Form1
Form frmAddOrgSystem = new frmAddOrgSystem();
frmAddOrgSystem.ShowDialog();
on frmAddOrgSystem
orgsystemid = Form1.treeView2.SelectedNode.Index.ToString();
I get this error:
An object reference is required for the nonstatic field... etc etc
I know I need to do something like pass a reference of Form1 to
frmAddOrgSystem, but I cant find any real clear eample of this online,
any help would be appreciated!