Q:

WebBrowser Paste

I’m using the WebBrowser control as a html editor in a WinForm application I am building. I have a button which pastes some text into the WebBrowser control which works fine on every machine except 1! Here is the code behind the button click event:
Clipboard.SetText("Some text ...")
WebBrowser.Document.ExecCommand("paste", False, Nothing)

I’ve tracked the problem down to the 2nd line of code. What confuses me even more is that if the user uses the “paste” option on the standard right click menu of the WebBrowser control then it pastes the text in fine.
Has anyone any ideas on what could be wrong here?

A:

I've fixed this problem - it seems to be a security restriction with IE - The security level in IE needs to be medium (Tools > Internet Options > security > Internet > Medium level)

