Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Executing external apps Pin
Chris Austin20-Feb-03 14:46
Chris Austin20-Feb-03 14:46 
GeneralC#/DirectX 9.0 tutorials Pin
sumo_guy20-Feb-03 10:24
sumo_guy20-Feb-03 10:24 
QuestionBackspace not handled by TextBox sometimes? Pin
Arun Bhalla20-Feb-03 9:06
Arun Bhalla20-Feb-03 9:06 
AnswerRe: Backspace not handled by TextBox sometimes? Pin
Arun Bhalla21-Feb-03 12:19
Arun Bhalla21-Feb-03 12:19 
GeneralSingleton component design problem Pin
leppie20-Feb-03 6:24
leppie20-Feb-03 6:24 
GeneralRe: Singleton component design problem Pin
pete mcquain20-Feb-03 7:24
pete mcquain20-Feb-03 7:24 
GeneralRe: Singleton component design problem Pin
leppie20-Feb-03 8:04
leppie20-Feb-03 8:04 
GeneralWebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:35
GriffonRL20-Feb-03 5:35 
Hello,

I'm using the webbrowser control in an application where the crawling is totally automated.
The problem is that sometimes the browser try to crawl an archive file or whatever. In that case a security alert dialog box pops up and my webbrowser control waits for this dialog to close.
I already succeded removing all Javascript dialogs by implementing the IDocHostShowUI interface and by putting the control into the "silent" mode (put_silent()).
I also implemented the IDocHostUIHandler to return S_OK or S_FALSE wherever possible to get rid of a maximum of MSHTML UI unwanted behaviours.
But I still get this security alert dialogs and I have no ideas of how to avoid them.

The only solution I found for the moment is to filter the links the webbrowser control can crawl in a page by removing files containing 'zip','rar','mp3','jpg','gif'... And so on.
But this solution is not perfect because of the number of possible file types and because sometimes you can't even guess what it is from the URL.
If only the webbrowser control could allow me to access the HTTP file headers before display, to guess what it is from the content-type !

But even if I can filter the URL I crawl, I would really like a solution to remove the security alert dialogs.
I also tried to tweak the Internet Explorer options to avoid prompts and dialogs but I didn't solve this problem.

Any idea ?

Thanks,


R. LOPES
Just programmer.
GeneralRe: WebBrowser control displaying security alert dialogs Pin
Stephane Rodriguez.20-Feb-03 5:44
Stephane Rodriguez.20-Feb-03 5:44 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
GriffonRL20-Feb-03 5:57
GriffonRL20-Feb-03 5:57 
GeneralRe: WebBrowser control displaying security alert dialogs Pin
Stephane Rodriguez.20-Feb-03 6:35
Stephane Rodriguez.20-Feb-03 6:35 
GeneralLogin & Application Form Pin
vladmihai20-Feb-03 5:16
vladmihai20-Feb-03 5:16 
GeneralRe: Login & Application Form Pin
Nnamdi Onyeyiri20-Feb-03 5:34
Nnamdi Onyeyiri20-Feb-03 5:34 
GeneralRe: Login & Application Form Pin
Chris Austin20-Feb-03 5:35
Chris Austin20-Feb-03 5:35 
GeneralRe: Login & Application Form Pin
vladmihai20-Feb-03 8:49
vladmihai20-Feb-03 8:49 
GeneralRe: Login & Application Form Pin
Chris Austin20-Feb-03 9:16
Chris Austin20-Feb-03 9:16 
GeneralThe chicken-and-egg problem. OO HELP!! Pin
~toki20-Feb-03 4:01
~toki20-Feb-03 4:01 
GeneralRe: The chicken-and-egg problem. OO HELP!! Pin
Nnamdi Onyeyiri20-Feb-03 5:44
Nnamdi Onyeyiri20-Feb-03 5:44 
QuestionHow to know which version of Microsoft Office are installed Pin
Hawkmoon19-Feb-03 23:34
Hawkmoon19-Feb-03 23:34 
AnswerRe: How to know which version of Microsoft Office are installed Pin
Stephane Rodriguez.20-Feb-03 5:39
Stephane Rodriguez.20-Feb-03 5:39 
GeneralRe: How to know which version of Microsoft Office are installed Pin
Hawkmoon20-Feb-03 23:25
Hawkmoon20-Feb-03 23:25 
QuestionHow to display a window form inside another form Pin
faad19-Feb-03 19:57
faad19-Feb-03 19:57 
AnswerRe: How to display a window form inside another form Pin
Chris Austin20-Feb-03 3:45
Chris Austin20-Feb-03 3:45 
GeneralRe: How to display a window form inside another form Pin
faad20-Feb-03 17:42
faad20-Feb-03 17:42 
GeneralRe: How to display a window form inside another form Pin
Chris Austin20-Feb-03 18:32
Chris Austin20-Feb-03 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.