private void SetTextInput() { // ensures that textbox is not already hooked before creating a new hook. if (_input == null) { _input = new RealText(_handle); } }
/// <summary> /// Removes the Focus of the textbox and Disposes the Hook to the windows keyboard events. /// </summary> public void Blur() { this.HasFocus = false; _input.Dispose(); _input = null; }