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
UltraComboEditor in DropDownList Mode with Blue Selection on CLoseUp
posted

I have a Combo in DropDownList mode and when the item is selected it shows it in blue. Im aware this is the operating Systems setting for selected text but i would like to know if there is any other way to not have it like that.

Im going for the DropDownButton look to some degree but dont know how to achieve it. Any Help is appreciated.

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    You could use the IUIElementDrawFilter interface to take over the drawing for that element (Infragistics.Win.EditorWithTextDisplayTextUIElement). In your case you would want to handle the BeforeDrawBackColor drawing phase, fill the background with the color you want to use,. and return true to indicate that it was handled.

Children