Can anyone please help me out in implementing one simple thing on VM, I have to copy the text from host machine and paste it on VM programmatically.
Here is the code:
Clipboard.SetText(" Hello, clipboard", TextDataFormat.Text);
if (Clipboard.ContainsText())
{
SendKeys.Send(" ^v"); //this doesn't work from Host to VM. But manually pasting is working but not from code.
}
Need help on SendKeys.Send(clipboardtext) on C# desktop app
-
- Posts: 1
- Joined: 2. May 2021, 23:42