Code for submitting Paste programmatically

Nov 23, 2009 at 6:09 PM

In case anybody else needs it

I needed to call the Paste method programmatically, i.e. in the case when you have copied data to the clipboard already and want tothat html data to be pasted programmatically to the control I did the following:<font size="2">

under HTMLTextbox.cs

</font>

 

 

 

<font size="2">

 

</font>

 

//In order to work it must be called during Shown, i.e. after the control is Shown

<font size="2">

 

</font>

 

public void Paste()

{

theBrowser.Focus();

<font size="2">

OnEnter(

</font>

new EventArgs());<font size="2">

tsbPaste_Click(

</font>

null, null);

}