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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:01:29+00:00 2026-05-25T23:01:29+00:00

I have a nice little UserControl that is a draggable box with some text

  • 0

I have a nice little UserControl that is a draggable box with some text in. To the right hand side of the control is a little clickable arrow, which when clicked, I’d like to get a few options pop out of the right of the control.

I have already got a PopoutWindow class, which inherits ToolStripDropDown, which allows me to pop up get a new control to ‘pop out’ of the right hand side of this arrow with the following usage.

  MyPopoutWindow options = new MyPopoutWindow ();
  PopoutWindow popout = new PopoutWindow(options);
  popout.Show(arrowButton, arrowButton.Width, 0);

MyPopoutWindow is (currently) a custom UserControl, which I want to be the same as the popped-out body of a ComboBox, or a ToolStripMenu.

Does anyone know of a Winforms control I can use or inherit to get this effect? I’ve tried using ToolStripDropDownMenu and ToolStripDropDown but I get the following Exception:

Top-level control cannot be added to a control.

Thanks,

  • 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-25T23:01:30+00:00Added an answer on May 25, 2026 at 11:01 pm

    The solution was actually quite obvious (isn’t it always!). As I mentioned in the question, I’d tried using a ToolStripDropDown but that threw an Exception.

    To solve this, I’ve got MyPopoutWindow to inherit ToolStripDropDown, but in the constructor, set the TopLevel property to false. This worked!

    public MyPopoutWindow()
    {
        TopLevel = false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a usercontrol which is basically a button with some nice little
I have this nice little MSBuild-based daily build setup that I use on my
I have a nice little assignment organizer that I want to add a backup
I want to have a nice little icon that, when clicked will clear the
I used to have a nice little Visual Studio Add-In that allowed me to
Some apps have this nice little white circle with an gray x in there
I have got this nice little method to remove control characters from a string.
Ok, so I have this PHP script that runs in a nice little infinite
So, I have this nice little view that I've made, which basically shows two
I have created a nice silverlight control doing exactly what I want it to

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.