Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > Turning off border on RadTextBox?

Not answered Turning off border on RadTextBox?

Feed from this thread
  • Posted on Sep 20, 2011 (permalink)

    Looking for a simple way to turn off the border drawing for the RadTextBox; since the control is based on the Microsoft Textbox I expected there to be a BorderStyle property but there isn't, making a composite control and the looking at using the RadTextBox on the control to take advantage of some of the AutoCompleteXXX properties. Any help how to turn off the border wonder be appreciated.

    Thank you in advance.

    Reply

  • Stefan Stefan admin's avatar

    Posted on Sep 23, 2011 (permalink)

    Hi Dave,

    Thank you for writing.

    You can hide the text box border, by setting the Visibility property of the BorderPrimitive to Collpased:
    radTextBox1.TextBoxElement.Border.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    I hope that you find this information helpful. If there is anything else we can assist you with, do not hesitate to contact us.
     
    All the best,
    Stefan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Posted on May 17, 2012 (permalink)

    Hi, is there a similar approach to hide the border on a DropDownList control and a DateTimePicker control? I've tried the following but isn't working:

    RadDropDownList.DropDownListElement.TextBox.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden
    RadDateTimePicker.DateTimePickerElement.TextBoxElement.Border.Visibility = Telerik.WinControls.ElementVisibility.Hidden


    Thanks,

    Javier

    Reply

  • Stefan Stefan admin's avatar

    Posted on May 22, 2012 (permalink)

    Hello Javier,

    Thank you for writing.

    Yes, you can hide the borders of the desired controls. Here is how to do that:
    ((BorderPrimitive)radDropDownList1.DropDownListElement.Children[2]).Visibility = ElementVisibility.Collapsed;
    ((BorderPrimitive)radDateTimePicker1.DateTimePickerElement.Children[2]).Visibility = ElementVisibility.Collapsed;

    Off topic, please do not post questions in threads that are not related to the initial subject of a thread. This thread concerns the border of RadTextBox and should be used only for this subject., in order to allow the users searching for this information to find it easily. If you do not find a suitable thread, please open a new one. For more information regarding forum usage, please take a look at this thread: http://www.telerik.com/community/forums/winforms/editors/important-information-on-using-the-telerik-forums.aspx.

    I hope this helps.
     
    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > Turning off border on RadTextBox?
Related resources for "Turning off border on RadTextBox?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]