We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the border style and appearance in the TextboxExt?

You can customize the border appearance of the TextBoxExt by using the following properties.

  • BorderStyle.
  • Border3DStyle.
  • BorderSides.
  • BorderColor.



This property specifies the border style of the TextBoxExt. The default value of the BorderStyle is BorderStyle.Fixed3D. The border style is categorized as:               

  1. None.
  2. FixedSingle.
  3. Fixed3D.



This property sets the 3D border style for the TextBoxExt, and this can be used when the BorderStyle is specified as Fixed3D. The Border3DStyles are categorized as:

  1. RaisedInner.
  2. RaisedOuter.
  3. SunkenInner.
  4. SunkenOuter.
  5. Raised.
  6. Etched.
  7. Bump.
  8. Sunken.
  9. Adjust.
  10. Flat.



This property specifies the border sides of the control, and this can be used when the BorderStyle is specified as Fixed3D. BorderSides are:

  1. All.
  2. Top.
  3. Bottom.
  4. Left.
  5. Right.
  6. Middle.



This property sets the single line bordercolor of the TextBoxExt, and can be used when the BorderStyle is specified as FixedSingle.

The following code example demonstrates the same.





Figure 1: Border style specified as None

Figure 2: Border style specified as FixedSingle

Figure 3: Border style specified as Fixed3D

Figure 4: Border style specified as Fixed3D

Figure 5: Border3DStyle is RaisedOuter

Figure 6: Border3DStyle is RaisedInner

Figure 7: Border3DStyle is Raised

Figure 8: Border3DStyle is SunkenInner

Figure 9: Border3DStyle is SunkenOuter

Figure 10: Border3DStyle is Adjust

Figure 11: Border3DStyle is Flat

Figure 12: Border3DStyle is Adjust

Figure 13: BorderSides specified as All

Figure 14: BorderSides specified as Top

Figure 15: BorderSides specified as Bottom

Figure 16: BorderSides specified as Left

Figure 17: BorderSides specified as Right

Sample Links:

C#: TextBoxExt_Border_Appearance _C#

VB: TextBoxExt_Border_Appearance_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5507 10/23/2015 10/23/2015 WinForms TextBoxExt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon