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
145
UltraComboEditor selects all text when DroppedDown is set to True
posted

I am using the UltraComboEditor. When it is dropped down (either DroppedDown = true or DropDown()) it selects the text in the editor.

 

Is there a way I can disable this, I do not want the text selected when the control is dropped down?

Parents
  • 20872
    Suggested Answer
    Offline posted

    Hello mgasystems2003,

    I have tried the AfterDropDown event of the UltraComboEditor and it does work for me. What you could do is something like the following:

            ultraComboEditor1.AfterDropDown += new EventHandler(ultraComboEditor1_AfterDropDown);

             void ultraComboEditor1_AfterDropDown(object sender, EventArgs e)
            {
                UltraComboEditor edi = sender as UltraComboEditor;
                edi.SelectionStart = 0;
                edi.SelectionLength = 0;
            }

    Please let me know if you need any other assistance with this matter.

Reply Children
No Data