R
RobcPettit
Hi, I was having problems, from with in my program to SelectAll within
a webbrowser, copy then paste to a rtftextbox. Ive resolved this
using:
webBrowser1.Focus();
SendKeys.SendWait("^a^c");
richTextBox1.Focus();
richTextBox1.AppendText("\r" + "New");
SendKeys.SendWait("^+{END}");
SendKeys.SendWait("^v"); hich works ok for me. To me it looks a bit
clumsy though. I did read a few articles though were
'webBrowser1.Document.ExecCommand("SelectAll", true, null); ' was
bieng used. They all seemed to get this to work ok. Unfortunatly I
couldnt. Any pointers as to were I could be going wrong, I couldnt
find any clear code examples showing what references were bieng used.
Ive added a ref to mshtml.
Regads Robert
a webbrowser, copy then paste to a rtftextbox. Ive resolved this
using:
webBrowser1.Focus();
SendKeys.SendWait("^a^c");
richTextBox1.Focus();
richTextBox1.AppendText("\r" + "New");
SendKeys.SendWait("^+{END}");
SendKeys.SendWait("^v"); hich works ok for me. To me it looks a bit
clumsy though. I did read a few articles though were
'webBrowser1.Document.ExecCommand("SelectAll", true, null); ' was
bieng used. They all seemed to get this to work ok. Unfortunatly I
couldnt. Any pointers as to were I could be going wrong, I couldnt
find any clear code examples showing what references were bieng used.
Ive added a ref to mshtml.
Regads Robert