The WinForms CheckEdit changes the check state when a user clicks a checkbox or text. This example handles the MouseDown
event to prevent the state from changing when the user clicks anywhere other than the checkbox:
private void checkEdit1_MouseDown(object sender, MouseEventArgs e) {
CheckEdit cEdit = (CheckEdit)sender;
CheckEditViewInfo cInfo = (CheckEditViewInfo)cEdit.GetViewInfo();
Rectangle r = cInfo.CheckInfo.GlyphRect;
Rectangle editorRect = new Rectangle(new Point(0, 0), cEdit.Size);
if (!r.Contains(e.Location) && editorRect.Contains(e.Location))
((DXMouseEventArgs)e).Handled = true;
}
(you will be redirected to DevExpress.com to submit your response)