Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webbrowser . Setfocus on Frame

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
0
0
AU
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


 
Have finally found the code., after a lot of searching!!!!

WebBrowser1.Document.parentWindow.abcdef.focus

regards kennedymr2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top