I have a form that holds a splitContainer where both of the panels contain a checkedListBox. The MouseEvent does not fire when clicking on the CheckedListBox, but it does fire when clicking on either the panels, or the splitcontainer, or the main form. (BTW - the Click event does not fire on the CheckedListBox either, if that matters)
Is there some property that I'm forgetting to set, something like "EnableRaisingEvents" or something like that?
Here's the code that creates one of the CheckedListBox[es].
Is there some property that I'm forgetting to set, something like "EnableRaisingEvents" or something like that?
Here's the code that creates one of the CheckedListBox[es].
Code:
this.checkedListBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.checkedListBox2.FormattingEnabled = true;
this.checkedListBox2.Location = new System.Drawing.Point(0, 0);
this.checkedListBox2.Name = "checkedListBox2";
this.checkedListBox2.Size = new System.Drawing.Size(194, 214);
this.checkedListBox2.TabIndex = 0;
this.checkedListBox2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.checkedListBox2_MouseClick);
this.checkedListBox2.SelectedIndexChanged += new System.EventHandler(this.checkedListBox2_SelectedIndexChanged);
this.checkedListBox2.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedListBox2_ItemCheck);
this.checkedListBox2.Click += new System.EventHandler(checkedListBox2_Click);