How to hide the messagebox ?

  • Thread starter Thread starter zhangyl
  • Start date Start date
Z

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?
 
Zhangyl,

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

Cor
 
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]
 
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]


m.posseth said:
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 said:
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?
 
Back
Top