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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. ComboBox question

ComboBox question

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 1 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.
  • 1 Offline
    1 Offline
    1nsp1r3d
    wrote on last edited by
    #1

    Hi all, I wanted to ask if it is possible to make the combobox only accept values from its dropdown options, because you can just enter some rubbish in the combobox and then I would have to check if the chosen input actually is a valid input(ie one from the options). Is there another way to do this or I would have to validate the input against the options? Regards, gamehack

    C 1 Reply Last reply
    0
    • 1 1nsp1r3d

      Hi all, I wanted to ask if it is possible to make the combobox only accept values from its dropdown options, because you can just enter some rubbish in the combobox and then I would have to check if the chosen input actually is a valid input(ie one from the options). Is there another way to do this or I would have to validate the input against the options? Regards, gamehack

      C Offline
      C Offline
      Curtis Schlak
      wrote on last edited by
      #2

      Yes, you can. Check out the ComboBox.DropDownStyle property. "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

      1 1 Reply Last reply
      0
      • C Curtis Schlak

        Yes, you can. Check out the ComboBox.DropDownStyle property. "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

        1 Offline
        1 Offline
        1nsp1r3d
        wrote on last edited by
        #3

        Thank you :)

        C 1 Reply Last reply
        0
        • 1 1nsp1r3d

          Thank you :)

          C Offline
          C Offline
          Curtis Schlak
          wrote on last edited by
          #4

          My pleasure. Happy coding! "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

          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