>Hi,
>I am not getting ur below line.
>
>you may have to tab to get to a certain form field or other element.
>
>Please help me or send ur sample code.
>
Are you instancing a form that contains the WebBrowser control, which you then point to the created HTML document, or are you launching an actual, separate and independent instance of IE? If you're launching IE, you need to set focus to the IE instance - you may need something like Shell.Application's Windows collection, or the Wscript.Shell's AppActivate method to shift focus from your VFP app to the running Web Browser instance.
>Regards
>Mallari
>
>>>>>Hi All,
>>>>>
>>>>>I'm using IE5 webbrowser control to preview my report. and I'm using
>>>>>HTML for that. but when i show preview the focus is not at the
>>>>>IE control even if its tabindex is 1. i have to click mouse to see
>>>>>complete report.
>>>>> anybody know how to setfocus on IE5 webbrowser.
>>>>>
>>>>
>>>>How about oIE.SetFocus()?
>>>
>>>Erik,
>>> thanks for replying, but it doesnt work.
>>
>>Works for me, what are you seeing? Calling the control's SetFocus puts focus on the browser, you may have to tab to get to a certain form field or other element.