Home All Groups Group Topic Archive Search About

How to hide the messagebox ?

Author
23 Feb 2006 6:15 AM
zhangyl
I use a WebBrowser control to open an office Document in my form (like open
an attached file in IE). but every time when I open a file, there a
dialogbox named "File download" showed asking "Whether you want open or save
this file?", how can I do to not show it?

Author
23 Feb 2006 8:43 AM
Cor Ligthert [MVP]
Zhangyl,

If it is right you cannot, this is one of the oldest security issues in
webbrowsers.

Cor
Author
23 Feb 2006 1:28 PM
m.posseth
In theory    you can do  this

intercept the message to the webbrowser , and send the apropriate response

or throw in some API`s    find the window and select the required button
from code

regards

Michel Posseth [MCP]




Show quoteHide quote
"zhangyl" <zhan***@mail.nai.edu.cn> wrote in message
news:%23$tjSCEOGHA.3576@TK2MSFTNGP15.phx.gbl...
>I use a WebBrowser control to open an office Document in my form (like open
>an attached file in IE). but every time when I open a file, there a
>dialogbox named "File download" showed asking "Whether you want open or
>save this file?", how can I do to not show it?
>
Author
23 Feb 2006 1:32 PM
m.posseth
as a starting point


see this example http://www.freevbcode.com/ShowCode.Asp?ID=5635 i once wrote
and try to see wich messages are send

regards

Michel Posseth [MCP]


Show quoteHide quote
"m.posseth" <mich***@nohausystems.nl> wrote in message
news:evKnU0HOGHA.1532@TK2MSFTNGP12.phx.gbl...
>
> In theory    you can do  this
>
> intercept the message to the webbrowser , and send the apropriate response
>
> or throw in some API`s    find the window and select the required button
> from code
>
> regards
>
> Michel Posseth [MCP]
>
>
>
>
> "zhangyl" <zhan***@mail.nai.edu.cn> wrote in message
> news:%23$tjSCEOGHA.3576@TK2MSFTNGP15.phx.gbl...
>>I use a WebBrowser control to open an office Document in my form (like
>>open an attached file in IE). but every time when I open a file, there a
>>dialogbox named "File download" showed asking "Whether you want open or
>>save this file?", how can I do to not show it?
>>
>
>