Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. combobox with AutoCompleteMode

combobox with AutoCompleteMode

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aphei
    wrote on last edited by
    #1

    hi all, i am developing program with vb.net 2005 i am using combobox and i set the AutoCompleteMode property to Suggest, so when i type something to there, it will appear a list for every the content that likes what i type.. the problem is.. when we click on the list... it will return keycode 13 or enter... how can i disable that... is anybody have the answer? Thanks...

    N S 2 Replies Last reply
    0
    • A aphei

      hi all, i am developing program with vb.net 2005 i am using combobox and i set the AutoCompleteMode property to Suggest, so when i type something to there, it will appear a list for every the content that likes what i type.. the problem is.. when we click on the list... it will return keycode 13 or enter... how can i disable that... is anybody have the answer? Thanks...

      N Offline
      N Offline
      Nilesh Hapse
      wrote on last edited by
      #2

      You can check for keypress event for combobx and do nothing is keycode is 13... Regards, Nilesh

      S A 2 Replies Last reply
      0
      • A aphei

        hi all, i am developing program with vb.net 2005 i am using combobox and i set the AutoCompleteMode property to Suggest, so when i type something to there, it will appear a list for every the content that likes what i type.. the problem is.. when we click on the list... it will return keycode 13 or enter... how can i disable that... is anybody have the answer? Thanks...

        S Offline
        S Offline
        Senthil S
        wrote on last edited by
        #3

        Hello, It is easy if u follow the changes in the properties of combobox. 1. FlatStyle - System 2. AutoCompleteSource - ListItems 3. AutoCompleteMode - SuggestAppend after completion of this. I think ur problem may solve Senthil.S Software Engineer

        A 1 Reply Last reply
        0
        • N Nilesh Hapse

          You can check for keypress event for combobx and do nothing is keycode is 13... Regards, Nilesh

          S Offline
          S Offline
          Senthil S
          wrote on last edited by
          #4

          Hello, I am not agree ur point. Because In all control's Keypress event thier will be event displayer commonly known as 'e'. if we use e we will get to properties like e.handler, e.keychar. From this e.keychar which will tell the current pressing/pressed key character. From that we get 13,43,46 asci values which we currently using if we go for asc(e.keychar). 13 - for enter 32 - spacebar 46 - pullstop / dot Senthil.S Software Engineer.

          1 Reply Last reply
          0
          • N Nilesh Hapse

            You can check for keypress event for combobx and do nothing is keycode is 13... Regards, Nilesh

            A Offline
            A Offline
            aphei
            wrote on last edited by
            #5

            hmm.. but i need the 13 keypress event ....

            1 Reply Last reply
            0
            • S Senthil S

              Hello, It is easy if u follow the changes in the properties of combobox. 1. FlatStyle - System 2. AutoCompleteSource - ListItems 3. AutoCompleteMode - SuggestAppend after completion of this. I think ur problem may solve Senthil.S Software Engineer

              A Offline
              A Offline
              aphei
              wrote on last edited by
              #6

              if i use the SuggestAppend AutoCompleteMode property... when i use the mouse scroll it will not display all item in the combo box.. it just display item that like w type when we scroll it..

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups