Thank you, Kevin! That's it! Now I see where my problem was. Font is an ambient property, which, if not set, gets its value from container object. Forms designer just tries to preserver the value I set at the subclass level. It does it in a weird way, I should say. Your approach solves the problem, at least for me and for now.
Thanks again,
Yuriy
>Hey, Yuriy,
>
>Just as a follow-up, I learned one additional thing after making that post. So here is the code I'm using now:
>
>
>public class MyTextBox : System.Windows.Forms.TextBox
>{
> public override Font Font
> {
> get { return base.Font; }
> set {base.Font = value; } // new line
> }
>
> public MyTextBox()
> {
> base.Font = new Font("Tahoma",8);
> }
>}
>
>
>The code I previously posted would handle the inheriting the way you'd expect....but didn't allow you to change the font in the property sheet. You were totally restricted to the font defined in the base class. The small change above allows you to do so.
>
>
>
>Kevin
Yuri Rudenko
MCSD, MCP