473,406 Members | 2,710 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,406 software developers and data experts.

Working with the Web Browser Control

Does anyone know how to set focus to a web browser control so you can use
the command sendkey "{TAB}" and take within the web page itself.

webbrowser1.focus

doesn't seem to work.
I need to be able to click on a button on a web page.
Aug 18 '06 #1
3 1095
Is that an aspx page that you can modify?

tommaso

Nate ha scritto:
Does anyone know how to set focus to a web browser control so you can use
the command sendkey "{TAB}" and take within the web page itself.

webbrowser1.focus

doesn't seem to work.
I need to be able to click on a button on a web page.
Aug 18 '06 #2
webbrowser1.focus works OK for me, but doing this and using sendkey is a bad
idea, as you can lose focus and sendkey sends to the current application,
not the one that it is in so you have all sorts of problems.

You can do almost anything you want with a webpage directly with
webbrowser1.document


"Nate" <na**@hello.comwrote in message
news:QD*******************@tornado.ohiordc.rr.com. ..
Does anyone know how to set focus to a web browser control so you can use
the command sendkey "{TAB}" and take within the web page itself.

webbrowser1.focus

doesn't seem to work.
I need to be able to click on a button on a web page.

Aug 19 '06 #3
The code was:

web23202.Document.forms(0).submit()

Nate

"Nate" <na**@hello.comwrote in message
news:QD*******************@tornado.ohiordc.rr.com. ..
Does anyone know how to set focus to a web browser control so you can use
the command sendkey "{TAB}" and take within the web page itself.

webbrowser1.focus

doesn't seem to work.
I need to be able to click on a button on a web page.

Aug 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shardool Karnik | last post by:
Hi, I have an ASP.NET page that sends a request to the server to generate some html on the fly and print it through the server. Once the request comes in, the page is generated. I have a...
5
by: moondaddy | last post by:
I have a <a> element in a datagrid which wraps some asp.net labels. this element also has an onclick event which does not fire in netscape 6 (and perhaps other browsers for all I know...). Below...
4
by: Mad Scientist Jr | last post by:
i am trying to set focus to a specific control depending on the outcome of a validator control and it is not working. none of these methods are working to setfocus: 1....
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
4
by: Pipo | last post by:
The problem: I create a very simple custom control: public class cLabel : System.Web.UI.WebControls.Label { } I place the cLabel in a user control. When I place the user control on a page...
3
by: sonicwrx | last post by:
Am I missing something? I have a form with a browser control and a button. The code under the button is: private void btnGo_Click(object sender, EventArgs e) { wbScrape.Navigate(@"http://...
20
by: Charles | last post by:
Hello, On my web site, I have a <selectdrop-down menu that allows to show/ hide divs: http://tchernobyl.dreamhosters.com - The problem is that it doesn't work in IE7 (only tested in Opera and...
1
by: prasad9490024564 | last post by:
Hi Team, We are developing crossbrowsing type application with asp.net2.0 In my page i am having server side label control <asp:Label id="Label1" runat="server" Width="100px" >I am quite a...
0
by: prasad9490024564 | last post by:
Hi Team, We are developing crossbrowsing type application with asp.net2.0 In my page i am having server side label control <asp:Label id="Label1" runat="server" Width="100px" >I am quite a bit...
3
by: TS | last post by:
I am using IE 7. I have a website running on my local machine (localhost) and auto complete doesnt work for any of the textboxes, but going to web sites on the internet does support this so i know...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.