void OnButtonSelect(object sender, MouseEventArgs e) { // Take the focus if allowed if (CanFocus) Focus(); }