I was wondering how you make a CheckBox unselectable in c#? I thought it would be something like SetSelectable (false) or something but I can\'t seem to see th
CheckBox
This code worked for me:
public class CtrlCheckBoxReadOnly : System.Windows.Forms.CheckBox { [Category("Appearance")] [Browsable(true), EditorBrowsable(EditorBrowsableState.Always)] public bool ReadOnly { get; set; } protected override void OnClick(EventArgs e) { if (!ReadOnly) base.OnClick(e); } }