Set Focus in axWebBrowser (newbie)

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.
 
M

Marc Gravell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top