blah blah blah is here! blah blah » Close

up0down
link

Ok, another quick question here:

I searched for a click event for webbrowser but I guess there is not. I want to paste the text, copied to clipboard previously, into a text field on the webpage within webbrowser control.

I know I can do this using "ctrl+v" or "mouse right click+paste" but since this is a highly repetitive task, I need to simplify this so that when I click on the text field of the webpage, the text I copied previously will be pasted. Is it possible?

last answered one year ago

1 answers

up0down
link

the same thing i mentioned before to you about scripts, so when you want to add the script increment to the script string the value in the clipboard

string clipBoard=System.Windows.Forms.Clipboard.GetText();

ademmeda
108

I guess I am missing the point here. I am already getting the text from a textbox on the form and what I want is to paste this text into a text field on the webpage that I browse with webbrowser. I get the text with a button control, as follows: private void button1_Click(object sender, EventArgs e) { Clipboard.SetText(textBox1.Text); } And the next thing is to paste it into the text field on the webpage when I click the text field.

Feedback