Home All Groups Group Topic Archive Search About

How to hide the dialog form?

Author
1 Mar 2006 7:34 AM
zhangyl
I use a WebBrowser control to open an office Document in my form , 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 hide it?
Actually, when opening an office file embeded in IE, there also show this
dialog, How can I do it?

Author
1 Mar 2006 9:29 AM
Patrice
This is actually a client side setting (in the file types, this is the
"always ask before opening" checkbox). Changing this will affect all those
dialogs. You could perhaps add this as a configurable setting in your
application ?

Another option would be perhaps to have your application download the file
(for example by using the navigate event to "hook" into the usual download
process). Not sure as I'm not familiar with this control.

--
Patrice

Show quoteHide quote
"zhangyl" <zhan***@mail.nai.edu.cn> a écrit dans le message de
news:e52saKQPGHA.516@TK2MSFTNGP15.phx.gbl...
> I use a WebBrowser control to open an office Document in my form , 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 hide it?
> Actually, when opening an office file embeded in IE, there also show this
> dialog, How can I do it?
>
>
Author
2 Mar 2006 2:16 AM
zhangyl
Yes, I want how to add this as a configurable setting in my application.
I want to not display the dialog just when my application open a file, but
when the user open a file in IE, this dialog can displayed.

Show quoteHide quote
"Patrice" <a@bc.c> дÈëÏûÏ¢ÐÂÎÅ:enCUeKRPGHA.1***@TK2MSFTNGP10.phx.gbl...
> This is actually a client side setting (in the file types, this is the
> "always ask before opening" checkbox). Changing this will affect all those
> dialogs. You could perhaps add this as a configurable setting in your
> application ?
>
> Another option would be perhaps to have your application download the file
> (for example by using the navigate event to "hook" into the usual download
> process). Not sure as I'm not familiar with this control.
>
> --
> Patrice
>
> "zhangyl" <zhan***@mail.nai.edu.cn> a écrit dans le message de
> news:e52saKQPGHA.516@TK2MSFTNGP15.phx.gbl...
>> I use a WebBrowser control to open an office Document in my form , 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 hide it?
>> Actually, when opening an office file embeded in IE, there also show this
>> dialog, How can I do it?
>>
>>
>
>