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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:25:00+00:00 2026-06-15T08:25:00+00:00

I am creating a windows forms application, and I need a combobox containing items,

  • 0

I am creating a windows forms application, and I need a combobox containing items, that each opens another combobox and the user can specialize the selection.

An example:
I have 2 items in my combobox.
Danish words
English words

When the user selects English Words, then it opens another combobox, where the user can select an english word.

How do I create this kind of combobox?

**EDIT: It does not have to combobox, just something that achieves the same result

An image of the problem:Combobox problem

  • 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-15T08:25:01+00:00Added an answer on June 15, 2026 at 8:25 am

    Try this code:
    I’ve created two ComboBoxes one named language_CmbBx and one named words_CmbBx.
    I set words_CmbBx.Visible = false;

     private void language_CmbBx_SelectedIndexChanged(object sender, EventArgs e)
            {
                this.Cursor = new Cursor(Cursor.Current.Handle);
                words_CmbBx.Location = new Point(language_CmbBx.Location.X + language_CmbBx.Width, GetLocalMousePos().Y);
                words_CmbBx.Visible = true;
    
            }
    

    This method is to get your mouseposition or the position of the selectedItem you wanted:

        public Point GetLocalMousePos()
        {
            Point screenPos = Cursor.Position;
            return this.PointToClient(screenPos);
        }
    

    The only problem is that the ComboBox won’t stay open and I didn’t find a way yet to let it stay open.

    As I already mentioned it is really difficult to achieve what you want using ComboBoxes, try to use ListBox instead:

        private void languages_LstBx_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.Cursor = new Cursor(Cursor.Current.Handle);
            words_LstBx.Location = new Point(language_LstBx.Location.X + language_LstBx.Width, GetLocalMousePos().Y);
            words_LstBx.Visible = true;
        }
    

    Same code, better result!

    You can download my VS2010-project here: http://www.abouchleih.de/projects/twocomboboxes.zip

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

Sidebar

Related Questions

The basic setup is classic - you're creating a Windows Forms application that connects
I'm creating a Windows Forms application that uses an embedded WebBrowser control to view
I am creating a Windows Forms application that reads various tables from a database
I need help solving the problem below. I am creating a Windows Forms Application
I'm creating in a Windows forms application using VS2008. I need to add ActiveX
I'm creating my first Windows Forms Application, and one requirement is that there is
I'm creating a simple Windows Forms application with NHibernate and I'm a bit confused
I am working on creating a thread safe control for my windows forms application.
I am creating a c# windows form application that goes read registry on remote
I am creating a Windows forms user control. This control has a textbox and

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.