cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
The documentation says:
And when we try to assign a StringCollection:
Cannot implicitly convert type 'System.Collections.Specialized.StringCollection' to 'System.Windows.Forms.AutoCompleteStringCollection'
There is no inheritance hierarchy linking the two types.. So far, I'm clear the autocompletecollection, and adding al lthe strings our of the stringcollection to it. It would have been much nicer if I could have just bound this in the app settings..
Has anyone else encountered this and have a better solution?
public System.Windows.Forms.AutoCompleteStringCollection AutoCompleteCustomSource { set; get; }
Member of System.Windows.Forms.TextBox
Summary:
Gets or sets a custom System.Collections.Specialized.StringCollection to use when the System.Windows.Forms.TextBox.AutoCompleteSource property is set to CustomSource.
Returns:
A System.Collections.Specialized.StringCollection to use with System.Windows.Forms.TextBox.AutoCompleteSource.
And when we try to assign a StringCollection:
Cannot implicitly convert type 'System.Collections.Specialized.StringCollection' to 'System.Windows.Forms.AutoCompleteStringCollection'
There is no inheritance hierarchy linking the two types.. So far, I'm clear the autocompletecollection, and adding al lthe strings our of the stringcollection to it. It would have been much nicer if I could have just bound this in the app settings..
Has anyone else encountered this and have a better solution?