G
Guest
I'm trying to access public properties of the parent form of a dialog form,
using the example within Visual studio, i still can't get it to work. I keep
getting an error that
*** Object reference not set to an instance of an object *****
what am I missing?
Thanks in advance
the following code is located on a button of the parentform
********
FSGMaint fsdgm = new FSGMaint ( );
fsdgm.ShowDialog(this);
ProductDesc is a public property of FSDSetup which is the parent form
______________________________________
within the opened form *FSGMaint* is the following code
__________________________________
string x = ((FSDSetup)this.ParentForm).ProductDesc;
using the example within Visual studio, i still can't get it to work. I keep
getting an error that
*** Object reference not set to an instance of an object *****
what am I missing?
Thanks in advance
the following code is located on a button of the parentform
********
FSGMaint fsdgm = new FSGMaint ( );
fsdgm.ShowDialog(this);
ProductDesc is a public property of FSDSetup which is the parent form
______________________________________
within the opened form *FSGMaint* is the following code
__________________________________
string x = ((FSDSetup)this.ParentForm).ProductDesc;