Cut, Copy and Paste text from the control which has the focus. SendMessage(GetFocus,WM_CUT,0,0); SendMessage(GetFocus,WM_COPY,0,0); SendMessage(GetFocus,WM_PASTE,0,0);