Home All Groups Group Topic Archive Search About
Author
24 Jul 2006 8:30 AM
genojoe
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.

Author
24 Jul 2006 9:42 AM
Cor Ligthert [MVP]
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.
Author
24 Jul 2006 9:47 AM
Oenone
Cor Ligthert [MVP] wrote:
> I don't get it, can you explain us why you ask a MS Access question
> in a Visual Basic dotnet Language newsgroup?

Because he wants to know how to replicate these features in a VB.NET
application.

--

(O)enone
Author
24 Jul 2006 9:45 AM
Cor Ligthert [MVP]
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.
Author
24 Jul 2006 12:43 PM
Branco Medeiros
genojoe wrote:
> 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.

You may restrict the ComboBox to a list by setting its DropDownStyle
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.
Author
24 Jul 2006 12:59 PM
Cor Ligthert [MVP]
Branco

The first one I did not understand, now I know it

:-)

> 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.

I don't think that contains will do that, but whatever these one does.

findstring or findstringexact.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.findstringexact.aspx

Cor