Skip to content

WF-969658-Modified code snippets for TextBoxExt control's border customization #1270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions WindowsForms/TextBox/Border-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: post
title: Border Settings in Windows Forms TextBox control | Syncfusion
description: Learn about Border Settings support in Syncfusion Windows Forms TextBox (TextBoxExt) control and more details.
platform: WindowsForms
platform: windowsforms
control: TextBoxExt
documentation: ug
---
Expand All @@ -17,19 +17,29 @@ You can change the color and styles of the border of the [TextBoxExt](https://he

{% highlight c# %}

this.textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
this.textBoxExt1.BorderColor = System.Drawing.Color.Orchid
this.textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All;
this.textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
TextBoxExt textBoxExt1 = new TextBoxExt();
textBoxExt1.Location = new System.Drawing.Point(100, 100);
textBoxExt1.Size = new System.Drawing.Size(100, 20);
textBoxExt1.Text = "textboxext1";
textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
textBoxExt1.BorderColor = System.Drawing.Color.Orchid;
textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All;
textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(textBoxExt1);

{% endhighlight %}

{% highlight vb %}

Me.textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised
Me.textBoxExt1.BorderColor = System.Drawing.Color.Orchid
Me.textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All
Me.textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Dim textBoxExt1 As New TextBoxExt()
textBoxExt1.Location = New System.Drawing.Point(100, 100)
textBoxExt1.Size = New System.Drawing.Size(100, 20)
textBoxExt1.Text = "textboxext1"
textBoxExt1.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised
textBoxExt1.BorderColor = System.Drawing.Color.Orchid
textBoxExt1.BorderSides = System.Windows.Forms.Border3DSide.All
textBoxExt1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Controls.Add(textBoxExt1)

{% endhighlight %}
{% endtabs %}
Expand Down