kennedymr2
Programmer
I am using a webbrowser control to load a web page, which has frames.
In the documentcomplete i am saving the text on the page to a text file.
WebBrowser1.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
Tb.Text = Clipboard.GetText '(vbCFText)
WebBrowser1.ExecWB OLECMDID_CLEARSELECTION, OLECMDEXECOPT_DODEFAULT
I have found that until i have clicked somewhere in the frame i need to capture the text from, it does not work.
Is there a webrowser.frame("f2").setfocus type command ????
Ie webbrowser.setfocus, works. But can i setfocus to a frame.
Appreciate any help
In the documentcomplete i am saving the text on the page to a text file.
WebBrowser1.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
Tb.Text = Clipboard.GetText '(vbCFText)
WebBrowser1.ExecWB OLECMDID_CLEARSELECTION, OLECMDEXECOPT_DODEFAULT
I have found that until i have clicked somewhere in the frame i need to capture the text from, it does not work.
Is there a webrowser.frame("f2").setfocus type command ????
Ie webbrowser.setfocus, works. But can i setfocus to a frame.
Appreciate any help