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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:35:54+00:00 2026-06-15T04:35:54+00:00

We have a ComboBox (Dropdown style) with AutoCompleteMode = SuggestAppend and AutoCompleteSource = ListItems.

  • 0

We have a ComboBox (Dropdown style) with AutoCompleteMode = SuggestAppend and AutoCompleteSource = ListItems.

Whenever we open the dropdown list and then start writing in the text field part of the combobox, the sugest box covers the list of all dropdown values but the dropdown value list still remains with focus and we can’t select any items in the sugest box.

This is a very annoying behavior, and i hope it’s not its default behavior. Someone else have had the same problem and found out how to prevent it?

  • 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-15T04:35:56+00:00Added an answer on June 15, 2026 at 4:35 am

    You are you using AutoCompleteMode property. Your problem is that the suggest box covers the list dropdown list. Here is an alternative way of autocomplete.

    //ComboBox TextChanged Event
        private void txtName1_TextChanged(object sender, EventArgs e)
        {
            SqlDataAdapter daTemp = new SqlDataAdapter("select Name from Names where Name like '" + txtName1.Text + "%'", strConnection);
            DataTable dtTemp = new DataTable();
            daTemp.Fill(dtTemp);
            MessageBox.Show(dtTemp.Rows.Count.ToString());
            String[] Names = new String[dtTemp.Rows.Count + 1];
            if (dtTemp.Rows.Count > 0)
            {
                for (int x = 0; x <= dtTemp.Rows.Count - 1; x++)
                {
                    Names[x] = dtTemp.Rows[x][0].ToString();
                }
            }
            else
            {
                MessageBox.Show("Data not found");
            }
            contextMenuStrip1.Items.Clear();
            for (int y = 0; y <= dtTemp.Rows.Count - 1; y++)
            {
                //Set The Desired Location (e.g. Besides of ComboBox) Of ContextMenuStrip
                contextMenuStrip1.Left = 80;
                contextMenuStrip1.Top = 90;
                contextMenuStrip1.Items.Add(Names[y].ToString());
                contextMenuStrip1.Visible = true;
            }
        }
    

    The same thing can be applied to DropDownLost. Now you select the appropriate value from the ContextMenuStrip and give it to Your ComboBox (or DropDownList).
    To do that add the following code to ItemClicked event of the ContextMenuStrip.

    private void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            txtName1.Text = e.ClickedItem.ToString();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created my own combobox style along with stylign combobox items. The dropdown
I have a WPF toolkit DataGrid as the dropdown in a ComboBox template. <toolkit:DataGrid
I have a ComboBox with a list of names. I don't want to allow
I have a WPF app with a ComboBox where I want to style the
I have included the following style for ComboBox , which I happened to find
Possible Duplicate: Open dropdown(in a datagrid view) items on a single click We have
I have a combobox with DropDownStyle set to DropDown . I want it to
Using C#, say you have a ComboBox that has a DropDownStyle set to DropDown
I have a wpf combobox with some custom items. When the dropdown button is
I have an issue where a ComboBox control will change it's Text value when

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.