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
1470
Borders on Editor controls not displaying
posted

Hi there

I am using the UltraWinEditors v12.2.20122.2006

My boss asked to make the borders on our text boxes a little more snazzy. So I have set the BorderStyle to TwoColor and the BorderColor and BorderColor2 properties to Color.CornFlowerBlue but for some reason as soon as I run it on a PC that does not the Infragistics suite on it the borders are not rendered. I don't get any errors or other odd behaviour it's just the borders are not rendered. If I try other BorderStyles such as Rounded4Thick etc. you see the controls have a border but no color or weight.

My PC is Windows 7 but others are various including WinXP, 7 and 8

Tried setting UseOSThemes to true with no luck.

Any ideas?

Parents
  • 9190
    Verified Answer
    Offline posted

    Hello,

    I will be happy to assist you.

    I recommend changing the UseOSThemes property to false to prevent the OS from restricting any appearances from being set to the UltraTextEditor control. Please see the example code snippet below and the attached sample:

    private void Form1_Load(object sender, EventArgs e)
    {
     this.ultraTextEditor1.UseOsThemes = Infragistics.Win.DefaultableBoolean.False;
     this.ultraTextEditor1.BorderStyle = Infragistics.Win.UIElementBorderStyle.TwoColor;
     this.ultraTextEditor1.Appearance.BorderColor = Color.Red;
     this.ultraTextEditor1.Appearance.BorderColor2 = Color.Blue;

    Please let me know if you have any questions regarding this matter.

    UltraTextEditorBorders.zip
Reply Children
No Data