How to hide the dialog form?

Z

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?
 
P

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.
 
Z

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top