Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
Read-only custom UltraTextEditor
posted

Hello

 I am trying to create a custom control where I am using a text editor and I want it to be read-only and resemble a label (no border).  The reason for this is that users have to able to copy/paste from this read-only text box.  The problem is that even by setting BorderStyle=None or Solid with the same color as the background, the border is still visible.  What property do I have to set in order for my textbox not to have any border.

Thanks

EP

Parents
No Data
Reply
  • 469350
    Offline posted

    You are probably getting a border because of the operating system theme. Set UseOsThemes on the control to true and then you should be able to set the BorderStyle to None. 

Children
No Data