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

The Archive Base Latest Questions

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

this is an additional question of select one value of checkboxCombobox i needed for

  • 0

this is an additional question of select one value of checkboxCombobox

i needed for a particular situation a checkbox-combobox with actions like a regular combobox. i needed to be able to select only one value at a time. i got that figured out now. my next problem is:

private void PreDefSerials_SelectedValueChanged(object sender, EventArgs e)
{
    if (PreDefSerials.SelectedIndex > -1)
    {
        // shut down the evenhandler
        PreDefSerials.SelectedValueChanged -= PreDefSerials_SelectedValueChanged;
        // get the selected items name.
        string test = PreDefSerials.SelectedItem.ToString();

        // deselect all boxes
        for (int i = 0; i < PreDefSerials.CheckBoxItems.Count; i++)
        {
            PreDefSerials.CheckBoxItems[i].CheckState = CheckState.Unchecked;
        }

        if(test != "")
            // select the selected text again
            PreDefSerials.CheckBoxItems[test].CheckState = CheckState.Checked;

        // reinstate the eventhandler
        PreDefSerials.SelectedValueChanged += PreDefSerials_SelectedValueChanged;
    }
}

my problem now is that when I select a second item in the checkbocombobox the selected item is (item1, item2). with this name my recheck of the item is not working.

how can I get only the recent clicked item of a checkboxcombobox?

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

    why do i always want to do it the hard way! why try to use a checkboxcombobox as combobox? just because i have it on my form alreaddy!.

    there is a better and way more easy way to accomplish this problem! add a combobox. so i did. my new solution is an invisible combobox on the same spot as the checkboxcombobox. when a certain event occurs my combobox will be made visible and my checkboxcombobox will be made invisible.

    comboBox1.Visible = true;
    PreDefSerials.Visible = false;
    

    and the combobox will disapear again when my actions are done. everyone thanks for thinking with me.

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

Sidebar

Related Questions

I bumped into an additional question that I needed in regards to this: Using
I currently have a HTML select box like below. <select name=item_1> <option value=0>Choose one...</option>
Referencing Is Facebook an OpenID provider? here. This is kind of an additional question
I was looking at this question: Add additional data to a Highcharts series for
In addition to this question: iPhone network performance , I would like to know
I'm creating additional module to already multi-module maven project. And for this one I
I have this logical problem regarding on how to pass value from one JFrame
I use this script to show an additional language menu additional, which works great
I wish to do this using only XAML - How to add an additional
I need some additional functionality added to user_pass_submit. This must be added without changing

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.