473,383 Members | 1,788 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,383 software developers and data experts.

Hiding AxWebBrowser control

Hi!

I wrote an app to log-in and retrieve a numer of webpages.
To do this I have used an AxWebBrowser, controlling the
iexplorer with SendKeys (yes, i know this is anything but
elegant, but i like the iexplorer doing all dirty work ;).
The only problem for this, is that the control must have
the focus (and therefore be visible)...

Now, i'm trying to make things in a better way, but the
problem is that some of these webpages use javascript to
change session ID dinamically, and i don't know how to
process that with a httpwebrequest. żIs there any wway to
control an AxWebBrowser (i mean, load a page, fill the
fields of a form and fire the submit event) without show
the control? żOr mayby a way to process the javascript of
a document?

Thanks (and sorry for my english ;=)
Nov 15 '05 #1
1 1518
Arturo,

You can set a reference to MSHTML.tlb in your project, and then create
an instance of the HTMLDocument control. This will allow you to load and
parse HTML into it, without the user interface. You should also be able to
run the javascript code as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Arturo j Torres" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hi!

I wrote an app to log-in and retrieve a numer of webpages.
To do this I have used an AxWebBrowser, controlling the
iexplorer with SendKeys (yes, i know this is anything but
elegant, but i like the iexplorer doing all dirty work ;).
The only problem for this, is that the control must have
the focus (and therefore be visible)...

Now, i'm trying to make things in a better way, but the
problem is that some of these webpages use javascript to
change session ID dinamically, and i don't know how to
process that with a httpwebrequest. żIs there any wway to
control an AxWebBrowser (i mean, load a page, fill the
fields of a form and fire the submit event) without show
the control? żOr mayby a way to process the javascript of
a document?

Thanks (and sorry for my english ;=)
Nov 15 '05 #2

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

Similar topics

0
by: benchong | last post by:
hi does anybody know how to initiatize the AxWebBrowser control with a cookie? the problem is each time i create a new AxWebBrowser control and do a AxWebBrowser1.navigate to a page, i need to...
0
by: Lecture Snoddddgrass | last post by:
Hi, I noticed that my WinForms app was taking a while to start up. I stepped through the code to find out which line was causing the delay. The delay is occurring within one of my UserControls...
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...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
1
by: Mantorok | last post by:
Hi Is there anyway to get a WebBrowser to work without placing it on a form. I want to be able to instantiate a browser, complete some of the fields and submit, but whenever I try to navigate...
0
by: beau | last post by:
Hi, I'm using the AxWebBrowser in a C# WinForms application. I've got the basics working, but need some help controlling the view options for browsing files. How can I disable the...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: tamarindm | last post by:
Hi, I have a csharp application, running multiple instances of AxWebBrowser at the same time. Each web browser requires the same cookie, set using InternetSetCookie. If one AxWebBrowser control...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.