We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Selecting Text in a ComboBoxAutoComplete

Thread ID:

Created:

Updated:

Platform:

Replies:

17752 Aug 16,2004 07:30 AM Aug 17,2004 01:45 AM Windows Forms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On August 16, 2004 07:30 AM

It doesn''t seem possible to select text in the textbox portion of a ComboBoxAutoComplete control, is this correct? My users want to highlight the text and hit backspace to erase it. Thanks, Ben.

Administrator [Syncfusion]
Replied On August 16, 2004 04:17 PM

Hi Ben, Set the AutoCompleteComboBox''s AllowNewText property to true and handle its MouseDown event as shown below for this purpose : private void comboBoxAutoComplete1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { this.comboBoxAutoComplete1.SelectAll(); } Now you can delete the text in the ComboBoxAutocomplete using the Backspace/Delete keys. Note that the ComboBoxAutocomplete''s DropDownStyle should be set to DropDown. Please refer to the test sample that illustrates this, and let me know if this meets your requirements. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On August 17, 2004 01:45 AM

Hi Guru, Yes, this works fine. Thanks very much. Ben.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;