I want to be able to put two strings, one at a time, into the Windows clipboard in order so that users can just paste them twice.
The process would look like this:
1. User selects a row in a datagridview.
2. User clicks a button.
3. My application erases the current contents of the Windows clipboard and copies the 1st string to it.
4. User pastes the content from the clipboard by Ctrl-v or Right-click.
5. Application detects the paste and copies the 2nd string to the clipboard.
6. User pastes the content from the clipboard by Ctrl-v or Right-click.
7. Application clears the content of the clipboard.
I know how to do everything except step #5. How do I detect when the contents of the clipboard has been pasted?
The process would look like this:
1. User selects a row in a datagridview.
2. User clicks a button.
3. My application erases the current contents of the Windows clipboard and copies the 1st string to it.
4. User pastes the content from the clipboard by Ctrl-v or Right-click.
5. Application detects the paste and copies the 2nd string to the clipboard.
6. User pastes the content from the clipboard by Ctrl-v or Right-click.
7. Application clears the content of the clipboard.
I know how to do everything except step #5. How do I detect when the contents of the clipboard has been pasted?