Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS 2008 and Textbox AutoCompleteSource
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
VS 2008 and Textbox AutoCompleteSource
Divers
Thread ID:
01291634
Message ID:
01291634
Vues:
93
Is anyone using AutoComplete with Textbox?

I'm in VS 2008 now and I am getting an Exception:

System.InvalidCastException: Specified cast is not valid. at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.StringSource..ctor(String[] strings)
at System.Windows.Forms.TextBox.SetAutoComplete(Boolean reset)
at System.Windows.Forms.TextBox.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)

Mind you, I have only set the properties from the Properties pagetab, and they are:

AutoCompleteCustomSource = CA,NY,PA
AutoCompleteMode = Suggest
AutoCompleteSource = CustomSource

Again, this is not code, this is set in the Properties pagetab.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform