Error on form closing

Ken McLean

Member
Joined
Nov 6, 2006
Messages
5
Programming Experience
5-10
I am using a data-bound combo box on a Windows form. When I set the autocompletemode property to "suggest" the form will not close properly. The following exception is thrown when the user closes the form:

Cannot bind to the property or column LastName on the DataSource. Parameter name: dataMember
This exception is not thrown when the autocompletemode property is set to "none".

Is there anyway to work around this problem -- I reallly need the autocomplete functionality for my application? Thanks for your help.

Ken McLean
 
Andy,

Thanks, I saw that post before I posted my query. It does not help my situation. I don't have multiple combo boxes or data sets -- just one data set and one combo box.

Ken McLean
 
Thanks, I removed the auto complete feature in the form closing event handler and that did the trick. This appears to be a bug and I am surprised it is not listed in the Microsoft Knowledge base which I searched.
 
Back
Top