hide bottom border text box control

1 Answer 165 Views
TextBox TextBoxControl
ebrahim
Top achievements
Rank 1
Iron
Iron
ebrahim asked on 25 Jan 2022, 02:52 PM

hi 

what bottom border text box control not show after enable Embedded Label

ebrahim
Top achievements
Rank 1
Iron
Iron
commented on 31 Jan 2022, 12:59 PM

hi

this atach image is a textbox control

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Jan 2022, 10:42 AM
Hello, Ebrahim,   

I would like to note that Telerik UI for WinForms suite offers RadTextBox and RadTextBoxControl. Could you please specify which one you are using? I suppose that you are referring to RadTextBox since it supports RightToLeft functionality.

In order to hide the bottom border, please have a look at the default code snippet which demonstrates a sample approach how to manage all the borders around RadTextBox
            this.radTextBox1.ThemeName = "ControlDefault";
            this.radTextBox1.ShowEmbeddedLabel = true;
            this.radTextBox1.EmbeddedLabelText = "Enter Name";

            this.radTextBox1.TextBoxElement.Border.BoxStyle = BorderBoxStyle.FourBorders;
            this.radTextBox1.TextBoxElement.Border.BottomWidth = 0;
            this.radTextBox1.TextBoxElement.Border.TopWidth = 1;
            this.radTextBox1.TextBoxElement.Border.LeftWidth = 1;
            this.radTextBox1.TextBoxElement.Border.RightWidth = 1;

            this.radTextBox1.TextBoxElement.Border.TopColor = Color.CadetBlue;
            this.radTextBox1.TextBoxElement.Border.LeftColor = Color.CadetBlue;
            this.radTextBox1.TextBoxElement.Border.RightColor = Color.CadetBlue;

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ebrahim
Top achievements
Rank 1
Iron
Iron
commented on 31 Jan 2022, 12:59 PM

hi

this atache image is a textbox control

ebrahim
Top achievements
Rank 1
Iron
Iron
commented on 31 Jan 2022, 12:59 PM

hi

this atach image is a textbox control

Dess | Tech Support Engineer, Principal
Telerik team
commented on 02 Feb 2022, 12:53 PM

Hello, Ebrahim,   

If you are using RadTextBoxControl, not RadTextBox, feel free to use a similar approach:

            this.radTextBoxControl1.ThemeName = "ControlDefault";
            this.radTextBoxControl1.ShowEmbeddedLabel = true;
            this.radTextBoxControl1.EmbeddedLabelText = "Enter Name";

            this.radTextBoxControl1.TextBoxElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
            this.radTextBoxControl1.TextBoxElement.BorderBottomWidth = 0;
            this.radTextBoxControl1.TextBoxElement.BorderTopWidth = 1;
            this.radTextBoxControl1.TextBoxElement.BorderLeftWidth = 1;
            this.radTextBoxControl1.TextBoxElement.BorderRightWidth = 1;

            this.radTextBoxControl1.TextBoxElement.BorderTopColor = Color.CadetBlue;
            this.radTextBoxControl1.TextBoxElement.BorderLeftColor = Color.CadetBlue;
            this.radTextBoxControl1.TextBoxElement.BorderRightColor = Color.CadetBlue;

Tags
TextBox TextBoxControl
Asked by
ebrahim
Top achievements
Rank 1
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or