Sorry, I keep getting the below error on these lines:
private Parent parent;
public MyChild(Parent parent)
'System.Windows.Forms.Control.Parent' denotes a 'property' where a 'class'
was expected
thanks.
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opryii7kmvhntkfz@localhost...
Pass the parent as a paramter when you create the child.
MyChild newChild = new MyChild(this);
And add or change the constructor on the child class to accept a parent
parameter
private Parent parent;
public MyChild(Parent parent)
{
this.parent = parent;
}
then call parent.Property when you need it
--
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/