ComboBox Not In List

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • genojoe

    #1

    ComboBox Not In List

    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]

    #2
    Re: ComboBox Not In List

    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


    "genojoe" <genojoe@discus sions.microsoft .comschreef in bericht
    news:7BA69838-0059-4154-8673-34D61AAD0E0A@mi crosoft.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.

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: ComboBox Not In List

      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


      "genojoe" <genojoe@discus sions.microsoft .comschreef in bericht
      news:7BA69838-0059-4154-8673-34D61AAD0E0A@mi crosoft.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.

      Comment

      • Oenone

        #4
        Re: ComboBox Not In List

        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


        Comment

        • Branco Medeiros

          #5
          Re: ComboBox Not In List


          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 "DropDownLi st";

          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.

          Comment

          • Cor Ligthert [MVP]

            #6
            Re: ComboBox Not In List

            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/lib...ringexact.aspx

            Cor


            Comment

            Working...