|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ComboBox Not In ListThe Microsoft Access comboBox control has a LimitToList property and a
NotInList event. Can someone point me to code samples that cleanly emulates these control features from Access? All of the things I tried seem to be sloppy coding practice. Genoejoe.
I don't get it, can you explain us why you ask a MS Access question in a Visual Basic dotnet Language newsgroup? Cor Show quoteHide quote "genojoe" <geno***@discussions.microsoft.com> schreef in bericht news:7BA69838-0059-4154-8673-34D61AAD0E0A@microsoft.com... > The Microsoft Access comboBox control has a LimitToList property and a > NotInList event. Can someone point me to code samples that cleanly > emulates > these control features from Access? > > All of the things I tried seem to be sloppy coding practice. Cor Ligthert [MVP] wrote:
> I don't get it, can you explain us why you ask a MS Access question Because he wants to know how to replicate these features in a VB.NET > in a Visual Basic dotnet Language newsgroup? application. -- (O)enone Genojoe,
After rereading it, I understand the message. But maybe it is easier to tell the behaviour than to let us investigage what that behaviour is. An answer is than easier to give. Cor Show quoteHide quote "genojoe" <geno***@discussions.microsoft.com> schreef in bericht news:7BA69838-0059-4154-8673-34D61AAD0E0A@microsoft.com... > The Microsoft Access comboBox control has a LimitToList property and a > NotInList event. Can someone point me to code samples that cleanly > emulates > these control features from Access? > > All of the things I tried seem to be sloppy coding practice. genojoe wrote:
> The Microsoft Access comboBox control has a LimitToList property and a You may restrict the ComboBox to a list by setting its DropDownStyle> NotInList event. Can someone point me to code samples that cleanly emulates > these control features from Access? > > All of the things I tried seem to be sloppy coding practice. property to "DropDownList"; To verify if an item is not already in the compbox list, notice that the Items property is a collection: you can invoke its Contains( ) method. HTH. Regrads, Branco. Branco
The first one I did not understand, now I know it :-) I don't think that contains will do that, but whatever these one does.> To verify if an item is not already in the compbox list, notice that > the Items property is a collection: you can invoke its Contains( ) > method. findstring or findstringexact. http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.findstringexact.aspx Cor |
|||||||||||||||||||||||