Send data from parent form to child form

Jul 25 2008 2:55 PM

I have a multiform project and I am trying to send data from the parent form to the child form. I created a property in the parent form as follows:

public string conference;

public string Conference

{

      get

      {

            return conference;

      }

}

 

In the child form I try to access it as follows:

 

conference = Form1.Conference;

 

I get a compile error stating that an object reference is required to access the non static property.

Any helpful ideas would be appreciated.

 

Thanks


Answers (1)