471,348 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

How to set focus to a textbox in page in a AxWebBrowser control? thanks

I put a AxWebBrowser control into a window, I want a textbox in the page
that control call to be focused, if I call the webpage directly, I can see
the textbox is the focused one, but when I call it in the AxWebBrowser
control, the textbox is not set to be focused. what can I do for this?

thanks!
Jul 22 '05 #1
4 2625
David,

You can set the tabindex from it to 0 if you want it to be the one which has
focus forever at startup.

I hope this helps,

Cor
Jul 23 '05 #2
thanks, but that doesn't work.
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Ol**************@TK2MSFTNGP09.phx.gbl...
David,

You can set the tabindex from it to 0 if you want it to be the one which has focus forever at startup.

I hope this helps,

Cor

Jul 25 '05 #3
David,

What do you mean with this sentence
but when I call it in the AxWebBrowser control,


Do you mean that you have dragged the textbox in the AxWebBrowser Control?

Cor
Jul 25 '05 #4


In axWebBrowser1_DocumentComplete event do something like
you can click by using something like ..Similarly you can do using other
functions like foucs

HTMLDocument myDoc = (HTMLDocument) axWebBrowser1.Document;
HTMLInputElement btnSearch = (HTMLInputElement) myDoc.all.item("btnI",
0);
btnSearch.click();

*** Sent via Developersdex http://www.developersdex.com ***
Aug 2 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by John Lau | last post: by
1 post views Thread by Leon | last post: by
1 post views Thread by MPR | last post: by
13 posts views Thread by Udhay | last post: by
2 posts views Thread by hplloyd | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.