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. ToolStripDropDown - ToolStripControlHost with ComboBox problem

ToolStripDropDown - ToolStripControlHost with ComboBox problem

Scheduled Pinned Locked Moved C#
helpvisual-studioquestion
1 Posts 1 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
    AussieLew
    wrote on last edited by
    #1

    Using VS 2008. I have a ToolStripDropDown with a ToolStripControlHost containing a ComboBox (plus other controls). I have a handler attached to the ToolStripDropDown Closing event. The ComboBox has 8 items. When the list is dropped down the lower 5 items protrude beneath the ToolStripDropDown and overlay the form beneath. (At this point ToolStripDropDown.AutoClose is set to True.I need it set to this at this point) When any of these lower 5 items are selected in the list, the ToolStripDropDown Closing event is fired with ToolStripDropDownClosingEventArgs of ToolStripDropDownCloseReason.AppClicked. If any of the top 3 items ( the items of the list within the bounds of the ToolStripDropDown )are selected, it works as expected ie. no Closing event. If the Closing event handler is disabled temporarily, any of the 8 items can be selected. I'm guessing that when the portion which is overlaying the form is clicked, the dropdown list disappears and somehow the click is seen on the form? Is this normal behaviour? If so is there a way to work around? Thanks for any help.....

    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