I have an expanded DataGridView user control and some other NumericUpDown controls where the user can copy/paste information within my software and other software like Excel.
My problem is that when the user closes my software the information in the clipboard is lost. I would like this clipboard information to be kept, in case the information is not very big (maybe asking the user, as Microsoft Office Software does).
How can I leave this information in the clipboard, so that the user can use it afterwards?
Use the overload of Clipboard.SetDataObject that allows you to pass in a value indicating what should happen to the data when the app exits:
true if you want data to remain on the Clipboard after this application exits; otherwise, false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With