Border Settings in WinForms Percent TextBox

18 Nov 20181 minute to read

Color and styles can be applied to the border of the WinForms Percent TextBox control as described below.

this.percentTextBox1.Border3DStyle = System.Windows.Forms.Border3DStyle.Etched;
this.percentTextBox1.BorderColor = System.Drawing.Color.Orange;
this.percentTextBox1.BorderSides = System.Windows.Forms.Border3DSide.All;
this.percentTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Me.percentTextBox1.Border3DStyle = System.Windows.Forms.Border3DStyle.Etched
Me.percentTextBox1.BorderColor = System.Drawing.Color.Orange
Me.percentTextBox1.BorderSides = System.Windows.Forms.Border3DSide.All
Me.percentTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

WinForms PercentTextBox with the border style and color applied

A sample that demonstrates the Border Settings of WinForms Percent TextBox control is available at the following sample installation path:

%LOCALAPPDATA%\Syncfusion\EssentialStudio\<Version Number>\Windows\Tools.Windows\Samples\Advanced Editor Functions\ActionGroupingDemo