|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to hide the messagebox ?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] 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? > 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? >> > > |
|||||||||||||||||||||||