i have an mdi parent and mdi child and i want to know if what condition should i put to call the right class for this .
senario was i got a button in mdi parent (selectall) then i want to use that button for the active mdi child .
lets say:
private void iSelectAll_ItemClick(object sender, e)
{
Form DtexteditoR = new DtexteditoR();
//DtexteditoR.Show();
if (DtexteditoR.MdiChild == true)
{
rtb.SelectAll();
}
}
but a error
Operator == cannot be applied to operands of type 'System.Windows.Forms.Form' and 'bool'
appears ... what should i do?