Getting an object from an Extends

  • Thread starter Thread starter ~toki
  • Start date Start date
T

~toki

I have a class called OBJ

public class OBJ : Editor {
public System.Windows.Forms.Button btn;
public OBJ() {
btn = new System.Windows.Forms.Button();
}
}

The Editor class extends a Windows.Forms.Form and have a "save" button.
When it is pressed i need to serialize the "btn" object, but of course
itsn't visible from the Editor Class.
Any way (or trick) to get access to the "btn" object?
 
I fix my problem.
I add from OBJ a button to Editor
Im sure that isn't the best way but it works.
 
Back
Top