Checked ComboBox Control Help Needed

I've have control code that almost meets my needs. So far it has checkboxes and combobox action. The combobox Text equals the Text of a Checkbox Item. However, I need additional features:

1. Drop down must stay open and allow multiple checkbox checks before closing.
2. Each checkbox Text needs to appear as comma delimited string in combobox Text. (item1, item2,)

[Code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace CheckedComboBox
{
     public class CheckedComboBoxItem
    {
         public CheckedComboBoxItem( string text, bool initialCheckState )
        {
            _checkState = initialCheckState;
            _text = text;
        }

        private bool _checkState = false;
       
        public bool CheckState
        {
            get { return _checkState; }
            set { _checkState = value; }
        }

        private string _text = "";
       
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        private object _tag = null;
       
        public object Tag
        {
            get { return _tag; }
            set { _tag = value; }
        }
       
        public override string ToString()
        {
            return _text;
        }
    }

     public event EventHandler CheckStateChanged;

     public partial class CheckedComboBox : ComboBox
    {
         public CheckedComboBox()
        {
            this.DrawMode = DrawMode.OwnerDrawFixed;
            this.DrawItem += new DrawItemEventHandler(CheckedComboBox_DrawItem);
            this.SelectedIndexChanged += new EventHandler( CheckedComboBox_SelectedIndexChanged );
          }

        void CheckedComboBox_SelectedIndexChanged( object sender, EventArgs e )
        {
            CheckededComboBoxItem item = (CheckededComboBoxItem)SelectedItem;
            item.CheckState = !item.CheckState;
            if (CheckStateChanged != null)
                CheckStateChanged(item, e);
        }

         void CheckedComboBox_DrawItem( object sender, DrawItemEventArgs e )
        {                  
                  if( e.Index == -1 )
                  {
                        return;
                  }
                  
                  if( !( Items[ e.Index ] is CheckededComboBoxItem ) )
                  {                        
                        e.Graphics.DrawString(
                              Items[ e.Index ].ToString(),
                              this.Font,
                              Brushes.Black,
                              new Point( e.Bounds.X, e.Bounds.Y ) );
                        return;
                  }
                  
                  CheckededComboBoxItem box = (CheckededComboBoxItem)Items[ e.Index ];
                  
                  CheckBoxRenderer.RenderMatchingApplicationState = true;
                  CheckBoxRenderer.DrawCheckBox(
                        e.Graphics,
                        new Point( e.Bounds.X, e.Bounds.Y ),
                        e.Bounds,
                        box.Text,
                        this.Font,
                        ( e.State & DrawItemState.Focus ) == 0,
                        box.CheckState ? CheckBoxState.CheckedNormal : CheckBoxState.UncheckedNormal );
            }          

    }
}

[Form1]
public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
         
            checkedComboBox1.Items.Add(new CheckededComboBox.CheckedComboBoxItem("Item1", false));
            checkedComboBox1.Items.Add(new CheckededComboBox.CheckedComboBoxItem("Item2", false));
            checkedComboBox1.Items.Add(new CheckededComboBox.CheckedComboBoxItem("Item3", false));
                 
            this.checkedComboBox1.CheckStateChanged += new System.EventHandler(this.checkedComboBox1_CheckStateChanged);

        }

     private void checkedComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            checkedComboBox1.Text = e.ToString() + ",";
        }
pointemanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

saraganiCommented:
I have the solution for you:
http://www.codeproject.com/KB/combobox/checkedcombobox.aspx

The drop-down doesn't close...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pointemanAuthor Commented:
I'll download and check this one out,,,
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.