protected override void OnClick(EventArgs e) { // pass the event up only if its not readlonly if (!ReadOnly) base.OnClick(e); }