I want to create a "combo box" that lets the user select from an UltraTree. The infragistics WinEditors samples contain an example of doing this using UltraTextEditor and an DropDownEditorButton. The only problem with this example is that whenever the control drops down, it causes the containing form to lose focus. I want the form to maintain focus just like it would with an ordinary combo box. This can be partially achieved by setting the AutoFocus property of the DropDownEditorButton to False, but as soon as you click on the UltraTree it steals the focus again. Is there any way to create a drop down control that does not steal focus from the parent form when clicked? I know it is theoretically possible, UltraCalculatorDropDown achieves it. Thanks for your help!
Hi,
It's not the dropdown that's taking focus in this case, it's the control on the DropDown. The UltraCalculatorDropDown gets around this because what you see on the dropdown are not actually controls and therefore do not take focus.
I don't know of any way to stop the UltraWinTree from taking focus and still have it function.
For version 9.2, I tried just a System.Windows.Forms.Panel without anything in it to take focus, and the parent form still loses focus.
The only controls you could use here without taking focus away from the form is a control that does not take focus. But that probably wouldn't do you any good, since any control that does not take focus will also not be able to respond to the keyboard without jumping through some hoops.
The point is what kind of control can you use without the parent losing its focus?
jquerijero said:For version 9.2, I tried just a System.Windows.Forms.Panel without anything in it to take focus, and the parent form still loses focus.
I'm not sure what your point is. You don't need anything in the panel to take focus, the Panel takes focus. You can see this for yourself by hooking the GotFocus event of the panel.