Need help on SendKeys.Send(clipboardtext) on C# desktop app

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ManjulAlgo
Posts: 1
Joined: 2. May 2021, 23:42

Need help on SendKeys.Send(clipboardtext) on C# desktop app

Post by ManjulAlgo »

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.
}
Post Reply