Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:22:38+00:00 2026-06-16T01:22:38+00:00

I have a ToolStrip with a ToolStripDropDownButton. This in turn pop up a UserControl

  • 0

I have a ToolStrip with a ToolStripDropDownButton. This in turn pop up a UserControl with a DateTimePicker. When I click on the top numbers on the calendar (in green), everything works fine (user control stay open). When I click on one of the lower dates (in red), the ToolStripDropDown closes and the application loses focus. This causes the user to have to double click to open up the DropDown again (one time to focus the application, an other to open up the drop down).

This happens when the calender date are not on top of the user control. As you can see, the user control stops on the “green” dates.

I hope this is clear. This seems to be a windows bug since this happens with a very simple project. Have anyone seens this problem? Is there a fix for this?

enter image description here

[UPDATE]

I notice the same thing with dropdown.

enter image description here

It doesn’t happen with the user control is very big.

enter image description here

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    Dim uc As New UserControl1
    Dim cms As New ContextMenuStrip()
    cms.Items.Add(New ToolStripControlHost(uc))
    ToolStripButton1.DropDown = cms

End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:22:39+00:00Added an answer on June 16, 2026 at 1:22 am

    Feature, not a bug. The control needs to know that the user clicked outside of the dropdown so it can then automatically close the dropdown. That’s done with “mouse capture”, exposed in Winforms by the Capture property. Capturing the mouse ensures that mouse messages are sent to the control, even if the mouse is no longer located inside the control window.

    Perhaps it is obvious what’s happening now, you are not in fact clicking on the calendar. Once the dropdown is displayed, the control captures the mouse. The click is redirected to the ToolStripDropDown. Which sees that the mouse is no longer inside the dropdown when you click in the “red area” and thus closes the dropdown window.

    Dropdowns like this are really only suitable for simple items, putting any control inside of it that creates a toplevel window, like DateTimePicker or ComboBox just isn’t a supported scenario.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with a Toolstrip along the top. On this toolbar I
I have a ToolStrip . In my ToolStrip I have a ToolStripDropDownButton . My
I have a dropdown in my toolstrip (toolbar) i have attached a click event
I have a ToolStrip with multiple ToolStripDropDownButton s, each has a set of DropDownItems
Ok, so this is somewhat confusing, so bear with me. I have a toolStrip
I am trying to add a TrackBar in my ToolStrip. I have found this
I would like to have a tooltip that only comes up when you click
I have a tool strip which contains a ToolStripDropDownButton. As an alternative access method,
I have a ToolStrip with a ToolStripComboBox control on it, and I would like
I have a WinForms application. Application has menustrip, toolstrip and several panels. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.