2
2
layout : post
3
3
title : Border Settings in Windows Forms TextBox control | Syncfusion
4
4
description : Learn about Border Settings support in Syncfusion Windows Forms TextBox (TextBoxExt) control and more details.
5
- platform : WindowsForms
5
+ platform : windowsforms
6
6
control : TextBoxExt
7
7
documentation : ug
8
8
---
@@ -17,19 +17,29 @@ You can change the color and styles of the border of the [TextBoxExt](https://he
17
17
18
18
{% highlight c# %}
19
19
20
- this.textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
21
- this.textBoxExt1.BorderColor = System.Drawing.Color.Orchid
22
- this.textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All;
23
- this.textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
20
+ TextBoxExt textBoxExt1 = new TextBoxExt();
21
+ textBoxExt1.Location = new System.Drawing.Point(100, 100);
22
+ textBoxExt1.Size = new System.Drawing.Size(100, 20);
23
+ textBoxExt1.Text = "textboxext1";
24
+ textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
25
+ textBoxExt1.BorderColor = System.Drawing.Color.Orchid;
26
+ textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All;
27
+ textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
28
+ this.Controls.Add(textBoxExt1);
24
29
25
30
{% endhighlight %}
26
31
27
32
{% highlight vb %}
28
33
29
- Me.textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised
30
- Me.textBoxExt1.BorderColor = System.Drawing.Color.Orchid
31
- Me.textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All
32
- Me.textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
34
+ Dim textBoxExt1 As New TextBoxExt()
35
+ textBoxExt1.Location = New System.Drawing.Point(100, 100)
36
+ textBoxExt1.Size = New System.Drawing.Size(100, 20)
37
+ textBoxExt1.Text = "textboxext1"
38
+ textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised
39
+ textBoxExt1.BorderColor = System.Drawing.Color.Orchid
40
+ textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All
41
+ textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
42
+ Me.Controls.Add(textBoxExt1)
33
43
34
44
{% endhighlight %}
35
45
{% endtabs %}
0 commit comments