#933 – Cut/Copy/Paste Functionality in a TextBox

Cut, Copy and Paste functionality is automatically enabled for the text within a TextBox control.

You can select text in a TextBox by

  • Left-clicking and dragging with the mouse
  • Double-clicking to select a word
  • Moving the arrow keys while holding down the Shift key
  • Pressing Ctrl+A to select all text in the TextBox



With text selected, you can Cut or Copy selected text by

  • Right-clicking and selecting Cut or Copy from the context menu
  • Pressing Ctrl+X to Cut text (remove from TextBox and add to clipboard)
  • Pressing Ctrl+C to Copy text (add to clipboard without removing)


You can Paste text from the clipboard into the TextBox at the current cursor location by

  • Right-clicking and selecting Paste from the context menu
  • Pressing Ctrl+V to Paste text

If you currently have text selected, doing a Paste operation will replace the selected text with text from the clipboard.



About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

One Response to #933 – Cut/Copy/Paste Functionality in a TextBox

  1. Pingback: #947 – Intercepting Paste Operations in a TextBox | 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: