Layout Settings in MaskedEditBox

3 Sep 20201 minute to read

The layout settings of the MaskedEditBox control are discussed in this section.

You can set the minimum and maximum size of the MaskedEditBox control by using the MinimumSize and MaximumSize properties.

MaskedEditBox Properties Description
MaximumSize Gets / sets the maximum size for the control.
MinimumSize Gets / sets the minimum size for the control.
this.maskedEditBox1.MaximumSize = new System.Drawing.Size(150, 20);
this.maskedEditBox1.MinimumSize = new System.Drawing.Size(150, 20);
Me.maskedEditBox1.MaximumSize = New System.Drawing.Size(150, 20)
Me.maskedEditBox1.MinimumSize = New System.Drawing.Size(150, 20)

Set the minimum and maximum size of WF MaskedEditBox