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.

DataBound ComboBox Text Cleared after losing focus

Thread ID:

Created:

Updated:

Platform:

Replies:

22630 Dec 16,2004 03:00 PM Dec 17,2004 03:36 PM Windows Forms 1
loading
Tags: FAQ
Wei Cheng
Asked On December 16, 2004 03:00 PM

The ComboBox is dropdown style, if user type in something not on the list and try to move the focus away from the combobox, the text area is cleared right away. The Text value still was available within the LostFocus event handler, but after that it is gone. Any one know how to avoid the Text being cleared out?

Wei Cheng
Replied On December 17, 2004 03:36 PM

End up saving the Text value in a form variable and retrieve it later from that variable-kind of clumsy but good enough for now. Any better way doing this still plz post here.

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.

;