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

WebBrower Control: Close Script-Caused Dialogs Programmatically ?

I have a Windows Forms application that uses a WebBrowser object to
automatically visit a large number of web pages one at a time. The problem
is that some of the web pages throw up a dialog such as the print dialog (
from an onload='window.print()' ). This then can cause all sorts of
problems. Is there any way to know when a dialog has been to displayed and
then somehow close it?

Thx
Sep 18 '06 #1
1 1385
John,

Almost not, although what webbrowser, the interop AxWebbrowser has more
possibilities to solve your problem than the now .Net class webbrowser
wrapper which is in Net 2.0.

Cor

"John Smith" <so*****@dingbat.comschreef in bericht
news:45********@news.microsoft.com...
>I have a Windows Forms application that uses a WebBrowser object to
automatically visit a large number of web pages one at a time. The problem
is that some of the web pages throw up a dialog such as the print dialog
( from an onload='window.print()' ). This then can cause all sorts of
problems. Is there any way to know when a dialog has been to displayed and
then somehow close it?

Thx

Sep 19 '06 #2

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

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
1
by: mjcast | last post by:
I have been working on an ActiveX control in C#. It is packaged in a Windows Control library and the code is in a user control. The control is used as an automation receiver that is used to update a...
7
by: moondaddy | last post by:
I have a user control being used instead of a frame page. when the user clicks on a menu item I need to send the ID (integer value) of that menu as a parameter in the postback of the user control...
3
by: sean | last post by:
Hi There, I am trying to display some textboxes on my page, When I run the code the textbox is written to the page (when I view source) but not to the screen. Could someone tell me if I have the...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
6
by: Alan Silver | last post by:
hello, If I capture the OnItemDataBound event for a repeater, datalist, etc, I can get hold of a control in the ItemTemplate like this ... Literal litFred =...
10
by: sqlboy2000 | last post by:
Hello all, I have something very simple going on here and I'm scratching my head as to what the problem is. There are 4 items in my project, 2 webforms, a user control, and a module: ...
0
by: Mori | last post by:
I am using a popup Calendar to populate a textbox. When the textbox is on a form without content control, it works fine. the script is:<script>window.opener.document.forms(0).txtDate.value...
0
by: Sagaert Johan | last post by:
Hi I am trying to call a javascript function inside a htmlpage opened in the WebBrowser control without sucses. I tried to iterate through the HtmlItem collection and called the...
0
by: Hal Meyer | last post by:
I am setting the contents of the webbrowser control directly using the DocumentText property, which reads a file, and replaces certain placeholders with a value set by the contents of the relevent...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.