基于Window消息实现 class TextBoxExt:TextBox { private const int WM_RBUTTONDOWN = 0x0204; private const int WM_CHAR = 0x0102; protected override void WndProc(ref Message m) { switch (m.Msg) { case WM_RBUTTONDOWN: return;//屏蔽默认右键菜单 break; case WM_CHAR: int n
TextBox 编辑框 When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following order: Enter GotFocus LostFocus Leave Validating Validated--------------------- Cell单元格 第一种顺序,即不进行Cell编辑的情况下: CellEnter-发生于 D