Controlling the max size of a button
One of the things I'd like to demonstrate is the enforcement of a maximum size (height and width) of a button, particularly at design time. I figured all I would need to do is override the Width and Height property, eg:
public override Width
{
get{return base.Width;}
set{if(value > 100) value=100; base.Width = value;}
}
however, the Width property is not overridable.
Any thoughts?
Rob

