i have got the solution
A Windows Forms based text editor with HTML output[
^]
Need to add code in the editor.cs and you can find code in the comments in the above link.
private void theBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
// Existing Code here....
HTMLDocument HTMLDocument =
(HTMLDocument)doc;
((HTMLDocumentEvents2_Event)HTMLDocument).onkeypress += new
HTMLDocumentEvents2_onkeypressEventHandler(this.On_KeyPressEvent);
}
private bool On_KeyPressEvent(mshtml.IHTMLEventObj e)
{
if (e.ctrlKey &&
(e.keyCode == 86 || e.keyCode == 118))
{
MessageBox.Show("Pasted");
}
return true;
}