protected override void WndProc(ref Message m) { switch (m.Msg) { case 0x100: var args = new KeyEventArgs((Keys)m.WParam.ToInt32()); Parent.OnLabelKeyDown(args); if (args.Handled) { return; } break; case 0x101: var args2 = new KeyEventArgs((Keys)m.WParam.ToInt32()); Parent.OnLabelKeyUp(args2); break; case 0x102: var args3 = new KeyPressEventArgs((char)m.WParam.ToInt32()); Parent.OnLabelKeyPress(args3); if (args3.Handled) { return; } break; } base.WndProc(ref m); }