473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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?
Feb 23 '06 #1
3 2613
Zhangyl,

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

Cor
Feb 23 '06 #2

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" <zh*****@mail.nai.edu.cn> wrote in message
news:%2****************@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?

Feb 23 '06 #3
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" <mi*****@nohausystems.nl> wrote in message
news:ev**************@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" <zh*****@mail.nai.edu.cn> wrote in message
news:%2****************@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?


Feb 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
11
by: Rich Tasker | last post by:
I have a strange situation. A simple call to MessageBox.Show("XXX", "YYY") does not display the message in the messagebox with a visible font. Based on the content of the messagebox, the box...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
4
by: Tressa | last post by:
I have a messagebox that I only want to pop up only if it is not already being displayed on the screen. My code is still poping up the messagebox even though it is on the screen. What am I doing...
0
by: jkricka | last post by:
Hi! Can someone please explain me how to show/hide word toolbars? I'm oppening new word doc with follownig code. public class classWordDoc { private Word.ApplicationClass WordApp = new...
0
by: alex_f_il | last post by:
The class centers MessageBox inside the parent rectangle. Enjoy! using System; using System.Windows.Forms; using System.Text; using System.Drawing; using System.Runtime.InteropServices; ...
4
by: lcifers | last post by:
Is there a way, through VB.NET, to determine if the user has selected this option? I am writing an application that does some string functions to rename files, and the file names get chopped up if...
5
by: tlyczko | last post by:
Hello, I've searched on toggling divs and didn't really find what I was looking for, I saved a bunch of different threads. I have a form with several different text boxes for things like dates,...
1
by: traewathen | last post by:
Hello all i am rather new to the whole c # and .net language. my question is in regards to the c# portion of the matter. this is my code block which i have for hiding and unhiding:: ...
2
by: ziycon | last post by:
This function is in a class file, can't get the frmLogin form to hide when a user logins in, the frmMain will open fine though!??? public void login(string username,string password) { ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.