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. C#
  4. ComboBox

ComboBox

Scheduled Pinned Locked Moved C#
question
4 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.
  • L Offline
    L Offline
    Luther Baker
    wrote on last edited by
    #1

    Is there a switch to disallow manual text entry into a ComboBox? Or do I need to catch the KeyPress event and impl this myself? -Luther

    N C L 3 Replies Last reply
    0
    • L Luther Baker

      Is there a switch to disallow manual text entry into a ComboBox? Or do I need to catch the KeyPress event and impl this myself? -Luther

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      You need to set the ComboBoxStyle to DropDownList. Check ComboBoxStyle Enumeration[^] for further details. - Nick Parker
        My Blog

      1 Reply Last reply
      0
      • L Luther Baker

        Is there a switch to disallow manual text entry into a ComboBox? Or do I need to catch the KeyPress event and impl this myself? -Luther

        C Offline
        C Offline
        Charlie Williams
        wrote on last edited by
        #3

        Set the control's DropDownStyle to DropDownList Charlie if(!curlies){ return; }

        1 Reply Last reply
        0
        • L Luther Baker

          Is there a switch to disallow manual text entry into a ComboBox? Or do I need to catch the KeyPress event and impl this myself? -Luther

          L Offline
          L Offline
          Luther Baker
          wrote on last edited by
          #4

          Thank you both. -Luther

          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