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
265
trying to get the same look as the System.Windows.Forms.TextBox
posted

Hi,

 

not sure what I am doing wrong, but I can't get the style I want. I recently replaced a textbox I had with the infragistics one but I want to keep the look the same. The style is intially flat looking and it does change as I focus the textbox to the one I actually set. I don't understand why it is not always that one.

in the designer I see the textbox raised the same way I see it when focused, but how do I get rid of the flat appearance when not focused?

 

Me.txtText.BorderStyle = Infragistics.Win.UIElementBorderStyle.Raised

       

Me.txtText.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.Office2000

       

Me.txtText.UseAppStyling = False

       

Me.txtText.UseFlatMode = Infragistics.Win.DefaultableBoolean.[False]

       

Me.txtText.UseOsThemes = Infragistics.Win.DefaultableBoolean.[True]

 

thanks,

mk

Parents
No Data
Reply
  • 69832
    Offline posted

    There isn't enough information here to determine why you're getting different looks depending on whether the control is focused.

    Setting UseOsThemes to true, however, would certainly explain the control appearing with flat borders, assuming you're running an OS more recent than Windows2000, since that setting tells the control to use the OS theming to render itself.

Children