protected override void OnActivated(EventArgs e) { menuItemViewButtons.Checked = Properties.Settings.Default.ViewButtons; viewButtons = ShowView(viewButtons, Properties.Settings.Default.ViewButtons); menuItemViewQueue.Checked = Properties.Settings.Default.ViewQueue; viewQueue = ShowView(viewQueue, Properties.Settings.Default.ViewQueue); WindowHandleUtils.HideCaret(textBoxInputStream.Handle); base.OnActivated(e); }
public void AppendText(string text) { if (!IsDisposed) { if (InvokeRequired) { AppendTextDelegate d = new AppendTextDelegate(AppendText); Invoke(d, new object[] { text }); } else { textBoxInputStream.AppendText(text); WindowHandleUtils.HideCaret(textBoxInputStream.Handle); } } }
internal void UpdateKeys() { if (!IsDisposed) { SetHeadingText(keysPressed.Count); this.textBoxButtonStates.Clear(); foreach (int keyCode in keysPressed) { Key key = Keyboard.GetKey(keyCode); this.textBoxButtonStates.Text += key.ToString();; this.textBoxButtonStates.Text += Environment.NewLine; } WindowHandleUtils.HideCaret(this.textBoxButtonStates.Handle); } }
protected override void OnActivated(EventArgs e) { WindowHandleUtils.HideCaret(this.textBoxButtonStates.Handle); base.OnActivated(e); }
private void ButtonClear_Click(object sender, EventArgs e) { textBoxInputStream.Clear(); WindowHandleUtils.HideCaret(textBoxInputStream.Handle); }