Soldato
- Joined
- 12 Apr 2004
- Posts
- 11,788
- Location
- Somewhere
I've created a custom control that derives from TextBox, and overriden the Text property inherited from TextBox. The problem is that base.Text is not doing what it should do – it's just getting/setting my override of it. 
Unless i'm misunderstanding polymorphism and the base keyword, this shouldn't be happening should it?
Edit: it works fine if I use the new keyword, but only when running; it causes odd behaviour in the designer (as it's getting/setting the TextBox.Text property instead).

Unless i'm misunderstanding polymorphism and the base keyword, this shouldn't be happening should it?
Edit: it works fine if I use the new keyword, but only when running; it causes odd behaviour in the designer (as it's getting/setting the TextBox.Text property instead).
Last edited: