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