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 7012345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:14:38+00:00 2026-05-27T22:14:38+00:00

Can I create a control that has 2 menu’s characteristic: Do not take form’s

  • 0

Can I create a control that has 2 menu’s characteristic:

  • Do not take form’s focus on clicking.
  • Automically disappear when clicking outside.

I intend to draw it manually, but I realise I can’t draw outside of form’s border like system menu.

  • 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-05-27T22:14:39+00:00Added an answer on May 27, 2026 at 10:14 pm

    You are describing the ToolStripControlHost, which can contain any control you want. Paired with the ToolStripDropDown, and you have a very effective custom drop down control that will not take focus from the main form, and will close when clicked outside of it:

    Dim toolDrop As New ToolStripDropDown()
    Dim toolHost As New ToolStripControlHost(myControl)
    toolHost.Margin = New Padding(0)
    toolDrop.Padding = New Padding(0)
    toolDrop.Items.Add(toolHost)
    toolDrop.Show(Me, New Point(0, 0))
    

    Whatever myControl is, sometimes you have to set the MinimumSize of it equal to the size of the control. There are events you can handle for the ToolStripDropDown such as, Opening and Closing.

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

Sidebar

Related Questions

There are other posts that say you can create a control in windows forms
I can create a contact that is not mail enabled, but how do I
I want a create a custom/user control that has children. For Example, I want
I want to create a Silverlight 2 control that has two content areas. A
I want to create custom WPF control that has a single child control inside.
I am trying to create a Sub that can take an object and add
I am trying to create a page which has Telerik Editor control. Use can
I understand that you can now create MVC-specific user controls, but will my existing
I am learning PyQt and wonder if one can create custom/owner draw control like
To create a new event handler on a control you can do this c.Click

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.