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 bug or feature?

ComboBox bug or feature?

Scheduled Pinned Locked Moved C#
helpquestion
3 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.
  • R Offline
    R Offline
    r t
    wrote on last edited by
    #1

    1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.

    L C 2 Replies Last reply
    0
    • R r t

      1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      First time when u click on the form it just makes a selection from your ComboBox but the focus stays in there but on the second click, it loses focus. I think this is the normal sequence.

      1 Reply Last reply
      0
      • R r t

        1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.

        C Offline
        C Offline
        Chris Rickard
        wrote on last edited by
        #3

        Yes this is a standard feature. When the DropDown window is displayed it sets MousCapture. The intention is to prevent an accidental command from executing from an inadvertand mouseclick intended to close the dropdown window.

        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