Hi
Hope someone can help me here. I need your help urgently.
I have MainForm which contains some buttons , textboxes, and one RichTextBox.
I have also my own classes (Person , Employee , Engineer , Manager).
When clicking on Print Button - I need to print all details and the values of the member variables of "Employee Class" into the RichTextBox.
The problem that 'Employee class' does not know the RichTextBox control or even the MainForm , and that is why I cannot have a reference to it.
Maybe someone can tell me how to do that with an example??!!
Thank you
Hope someone can help me here. I need your help urgently.
I have MainForm which contains some buttons , textboxes, and one RichTextBox.
I have also my own classes (Person , Employee , Engineer , Manager).
When clicking on Print Button - I need to print all details and the values of the member variables of "Employee Class" into the RichTextBox.
The problem that 'Employee class' does not know the RichTextBox control or even the MainForm , and that is why I cannot have a reference to it.
Maybe someone can tell me how to do that with an example??!!
Thank you
Comment