I am struggling with implementing the basic shortcuts for my vsto Outlook add-in. However I need at the very least to be able to paste text into a combobox that is in a small forms window that appears in the preview pane of the mail.
I was able to implement the paste function with only 'ctrl' or only 'v' pressed I have tried everything I found on the internet and even got the functionality working in a test windows forms project with:
private void comboBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.V)
{
comboBox1.Text = "success";
}
}
However when I try the same code in the outlook vsto project this does simply not work. Did anybody have the same or a similar problem? How did you fix it?
Thank you for your help.