Skip to content

Commit 597780a

Browse files
authored
Merge pull request #1270 from syncfusion-content/969658-TextBoxExt_UG_Changes
WF-969658-Modified code snippets for TextBoxExt control's border customization
2 parents 9389506 + f2f781c commit 597780a

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

WindowsForms/TextBox/Border-Settings.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
title: Border Settings in Windows Forms TextBox control | Syncfusion
44
description: Learn about Border Settings support in Syncfusion Windows Forms TextBox (TextBoxExt) control and more details.
5-
platform: WindowsForms
5+
platform: windowsforms
66
control: TextBoxExt
77
documentation: ug
88
---
@@ -17,19 +17,29 @@ You can change the color and styles of the border of the [TextBoxExt](https://he
1717

1818
{% highlight c# %}
1919

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);
2429

2530
{% endhighlight %}
2631

2732
{% highlight vb %}
2833

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)
3343

3444
{% endhighlight %}
3545
{% endtabs %}

0 commit comments

Comments
 (0)