473,378 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 2678
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
1
by: Leon | last post by:
Hi Everybody. Can someone prompt me how to set Focus on any control inside of a user control? Thanks in advance Leon
1
by: MPR | last post by:
I'm displaying a web page with the navigate2 method of the axWebBrowser control. On the web page that is already in the axWebBrowser control, there are severla links, like in any other web page....
4
by: davidw | last post by:
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...
13
by: Udhay | last post by:
I am trying to use the AxWebbrowser control in my VB.Net application. The control is placed on one of the tab pages in the form. This is the error I am getting when I have the 'exceptions' set to...
2
by: hplloyd | last post by:
Hi, My question is very simple I am sure but I cant seem to find a solution anywhere.... I have a windows form in C# and I have added an axWebBrowser control. When the form loads I am trying...
3
by: Andy Chen | last post by:
Hi, I am using AxWebBrowser control and I met a problem. I need to browse several different languages page. I have to change the default IE language setting at runtime. This can be done by...
2
by: dougmcmurtry | last post by:
I have a web app that is going on a touch screen computer with no keyboard, so I have to allow them to enter numeric data into text fields through a UserControl that I built. All I need to find is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.