12-06-2012 01:27 AM - edited 12-06-2012 01:28 AM
Encountered a small problem when trying to copy stuff from a datagrid in one of my plugins.
Apparantly Sage Act by default puts a contact's details on the clipboard whenever you press CTRL+C on a contact record, except when you're in a textbox.
So instead of copying the contents of the selected cell, I get the following
Contact Fullname Contact Title Contact Company Contact Phone Contact Address1 Contact City Contact Postal Code Contact Country Contact E-mail
on my clipboard.
So, question is: any way to override that behaviour?
12-06-2012 06:33 AM
You could register for the KeyDownEvent and if (e.Control && e.KeyCode == Keys.C) then you can clear the clipboard and replace it with whatever you'd prefer be there.