Set Focus in axWebBrowser (newbie)

  • Thread starter Thread starter tamarindm
  • Start date Start date
T

tamarindm

Hi,

I am quite new using csharp.

I have a axWebBrowser control in my windows application. The
axWebBrowser will contain a textbox. Is there any way to set focus to
this text box from my windows application ?

Thanks in advance.
 
I don't know about axWebBrowser (presumably this is interop in 1.1),
but with WebBrowser (the 2.0 managed wrapper) you can use things like:
myBrowser.Document.GetElementById("SomeId").Focus();
or (.InvokeMember() or .InvokeScript())

Marc
 
Back
Top