Exemple #1
0
 public CheckComboBox()
     : base()
 {
     m_checkListBox              = new CheckListBox();
     m_checkListBox.Dock         = DockStyle.Fill;
     m_checkListBox.ItemChecked += new ItemCheckedEventHandler(m_checkListBox_ItemChecked);
     m_dropDown         = new ToolStripDropDown();
     m_dropDown.Margin  = new Padding(0);
     m_dropDown.Padding = new Padding(1);
     m_dropDown.Items.Add(new ToolStripControlHost(m_checkListBox));
     m_dropDown.Closing += new ToolStripDropDownClosingEventHandler(m_dropDown_Closing);
 }
 public CheckComboBox()
     : base()
 {
     m_checkListBox = new CheckListBox();
     m_checkListBox.Dock = DockStyle.Fill;            
     m_checkListBox.ItemChecked += new ItemCheckedEventHandler(m_checkListBox_ItemChecked);
     m_dropDown = new ToolStripDropDown();
     m_dropDown.Margin = new Padding(0);
     m_dropDown.Padding = new Padding(1);
     m_dropDown.Items.Add(new ToolStripControlHost(m_checkListBox));
     m_dropDown.Closing += new ToolStripDropDownClosingEventHandler(m_dropDown_Closing);            
 }