c# - How do I tell the designer that my custom winforms control has a fixed height? -
I have a custom control and override SetBoundsCore
such that the height of control is fixed . I want the designer to show the same type of box as NumericUpDown
- there is only one on each end that it is clear that there is a certain height of control how can I tell the designer Am I a certain height of control?
attribute to you in a your
user control
:
[designer (typef (UCDDiger))] Public partial class UserControl1: UserControl {public UserControl1 () {InitializeComponent (); }}
Note: Design namespace. UCDD is defined as following the class:
class UCDesigner: System.Windows.Forms .Design.ControlDesigner {public override system.windows.form. Design Rule Selection Rule of Selection ({Return (Base Selection Rules & amp; (Selection Rules.bot Sequencing · Selection Rules.changeable))}}}
Comments
Post a Comment