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

  • Home
  • SEARCH
  • 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 6993955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:49:47+00:00 2026-05-27T19:49:47+00:00

I have a combobox on my form. It’s in DropDown mode and it has

  • 0

I have a combobox on my form. It’s in DropDown mode and it has autocomplete. When it is first shown, its text is "Choose part...". I would like it to reset its text to this after a selection is made. I’ve tried this (assuming the combobox is named comboBox1):

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
      // [omitted]

      comboBox1.Text = "Choose part...";
    }

It only works when the selection is made using the keyboard (e.g. type a value and press [Enter] or start typing, use the arrows to select one of the autocorrect values, and press [Enter]). When the selection is made using the mouse, the text remains the value selected.

I’ve had problems with keyboard & mouse doing different things with comboboxes before, but that had to do with certain events not firing. I’m sure that this event is firing (the omitted code above runs regardless of the method used).

Has anyone seen this before? Any solutions?

  • 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-27T19:49:48+00:00Added an answer on May 27, 2026 at 7:49 pm

    Try using a delegate instead:

    private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) {
      // [omitted]
    
      this.BeginInvoke((MethodInvoker)delegate { comboBox1.Text = "Choose part..."; });
    }
    

    And as Hans commented, this probably is not considered the best UI implementation with how users come to expect a ComboBox to work.

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

Sidebar

Related Questions

I have a combobox in a form, and I want the text of the
I have a ComboBox on a form, and its default height is 21. How
In my windows form i have two combobox and one text box when a
I would like to have a ComboBox control on a form which will be
Using C#, say you have a ComboBox that has a DropDownStyle set to DropDown
I have a Combobox control on my form (WinForms, .NET 3.5), and its DropDownStyle
I have a combobox and button on my form. The combobox has categories in
I have a combobox control in my form. I have enabled autocomplete feature in
I have a ComboBox that has its ItemsSource bound to a static List<CustomSettings> of
I have a combobox on my form that is bound to a generic list

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.