Border Settings in MaskedEditBox
27 Jan 20231 minute to read
The border settings of the MaskedEditBox control are discussed in this section.
The border styles for the MaskedEditBox control can be customized using the Border3DStyle, BorderColor, BorderSides and BorderStyle properties.
MaskedEditBox Properties | Description |
---|---|
Border3DStyle |
Indicates the style of the 3D border. The options included are as follows: RaisedOuter, SunkenOuter, RaisedInner, SunkenInner, Raised, Etched, Bump, Sunken, Adjust and Flat. The default value is set to 'Sunken'. |
BorderColor | Specifies the color of the 2D border. |
BorderSides |
Indicates the border sides of the panel. The options included are as follows: Left, Top, Right, Bottom, Middle and All. |
BorderStyle |
Indicates whether the edit control should have a border. The options included are given below: FixedSingle, Fixed3D and None. |
this.maskedEditBox1.Border3DStyle = System.Windows.Forms.Border3DStyle.Bump;
this.maskedEditBox1.BorderColor = System.Drawing.Color.Lime;
this.maskedEditBox1.BorderSides = System.Windows.Forms.Border3DSide.All;
this.maskedEditBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Me.maskedEditBox1.Border3DStyle = System.Windows.Forms.Border3DStyle.Bump
Me.maskedEditBox1.BorderColor = System.Drawing.Color.Magenta
Me.maskedEditBox1.BorderSides = System.Windows.Forms.Border3DSide.All
Me.maskedEditBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle