|
I'm using .NET 1.1
I have a form class called BaseForm, and I create a subclass of BaseForm called SubclassForm.
In the constructor of Baseform, I add text to the end of the Text property:
public class BaseForm:Form { public BaseForm(string sSuffix) { this.Text+=sSuffix; } }
public class SubclassForm:BaseForm { public SubclassForm(string sSuffix):base(sSuffix) { } }
In the designer, I change the Text property of SubclassForm to "SubclassForm", but when I instantiate SubclassForm, it uses the Text property of BaseForm rather than SubclassForm (IOW, it adds the passed string to the value from BaseForm.Text rather than SubclassForm.Text) |