protected override void OnKeyUp(KeyEventArgs e) { if (_gotKeyDown > 0) { KeyFriendlyControl.OnKeyUp(this, e); } _gotKeyDown = 0; base.OnKeyUp(e); }
protected override void OnKeyUp(KeyEventArgs e) { if (_gotKeyDown > 0) { _gotKeyDown = 0; int value = Win32.SendMessage(this.Handle, 0x0157, 0, 0); if (value == 0) { e.Handled = true; KeyFriendlyControl.OnKeyUp(this, e); return; } } base.OnKeyUp(e); }
protected override void OnKeyUp(KeyEventArgs e) { if (Properties.Resources.IsWindowsMobileStandard) { base.OnKeyUp(e); } else { if (e.KeyCode == Keys.Enter) { e.Handled = true; } else if (_gotKeyDown > 0) { KeyFriendlyControl.OnKeyUp(this, e); } else { base.OnKeyUp(e); } _gotKeyDown = 0; } }