L
lewi
How do I access data members of a parent form class and from a function of a
child form class. Both classes are both in the same name space and are
public classes...
The child form is a Modal dialog and should setup some of these data members
and validate them before OK button handler lets the dialog be dismissed by
this dlg closing prevention code...
//access and validate data members...
if(!SomeFalseCondition)
DialogResult = DialogResult.None;
else
;//DialogResult is reset back to DialogResult.OK somewhere(anyone know)
so this else statement is not needed here...
Any help...
child form class. Both classes are both in the same name space and are
public classes...
The child form is a Modal dialog and should setup some of these data members
and validate them before OK button handler lets the dialog be dismissed by
this dlg closing prevention code...
//access and validate data members...
if(!SomeFalseCondition)
DialogResult = DialogResult.None;
else
;//DialogResult is reset back to DialogResult.OK somewhere(anyone know)
so this else statement is not needed here...
Any help...