The best way is to define a public property on one form:
public string TheProperty
{
get { return _myProperty; }
}
Then you can call it from the other form, provided you have a reference to the other form:
MyForm form = (MyForm)formReference;
Console.WriteLine(form.TheProperty);
If this doesn't help then you'll have to be more specific in your requirements.
/- Sam Judson : Wrox Technical Editor -/
|