473,405 Members | 2,262 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,405 software developers and data experts.

web browser/mshtml problem

Got a problem.

Setting design mode on and making changes to an existing HTMLDocument makes
subsequent page changes to throw up dialog

----------------
Title has application path and file name,
"This document has been modified. Do you want to save changes?"
"Yes: Saves your changes"
"No: Discards your changes"
"Cancel: Keeps this document open"
Yes/No/Cancel buttons.
-----------------

How can i supress this?

Bascially I'm loading the contents (<body>) from a text file, wrapping it in
html headers and saving to a temp.html which i then
..Navigate({pathto}\temp.html) to. Works well.

When done i extract the body content and save to its original source file.
So i dont care for this message.

I cant call document.Exec("SaveAs",false,{pathto}\temp.html) as this causes
the FileSave dialog to appear. The third argument is ignored as part of the
underlying security policy (cos webpages could upload to your HD at that
point i suppose).

Am stuck. Any help any of you can give this would be appreciated.
Nov 15 '05 #1
2 5875
Tam,

If you go to the options dialog in VS.NET, under the "Environment"
folder and the "Documents" section there is a textbox labled:

Detect when file is changed outside of the environment

Make sure this is unchecked, and when the file is changed, it will not
give you that message.

However, this does this for all files, so be careful.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tam Inglis" <jo***********@btclick.com> wrote in message
news:br**********@sparta.btinternet.com...
Got a problem.

Setting design mode on and making changes to an existing HTMLDocument makes subsequent page changes to throw up dialog

----------------
Title has application path and file name,
"This document has been modified. Do you want to save changes?"
"Yes: Saves your changes"
"No: Discards your changes"
"Cancel: Keeps this document open"
Yes/No/Cancel buttons.
-----------------

How can i supress this?

Bascially I'm loading the contents (<body>) from a text file, wrapping it in html headers and saving to a temp.html which i then
.Navigate({pathto}\temp.html) to. Works well.

When done i extract the body content and save to its original source file.
So i dont care for this message.

I cant call document.Exec("SaveAs",false,{pathto}\temp.html) as this causes the FileSave dialog to appear. The third argument is ignored as part of the underlying security policy (cos webpages could upload to your HD at that
point i suppose).

Am stuck. Any help any of you can give this would be appreciated.

Nov 15 '05 #2
Sorry, should have been plainer.

Its the webbrowser that generating these errors, not VS.NET :-)
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:O8**************@TK2MSFTNGP11.phx.gbl...
Tam,

If you go to the options dialog in VS.NET, under the "Environment"
folder and the "Documents" section there is a textbox labled:

Detect when file is changed outside of the environment

Make sure this is unchecked, and when the file is changed, it will not
give you that message.

However, this does this for all files, so be careful.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tam Inglis" <jo***********@btclick.com> wrote in message
news:br**********@sparta.btinternet.com...
Got a problem.

Setting design mode on and making changes to an existing HTMLDocument makes
subsequent page changes to throw up dialog

----------------
Title has application path and file name,
"This document has been modified. Do you want to save changes?"
"Yes: Saves your changes"
"No: Discards your changes"
"Cancel: Keeps this document open"
Yes/No/Cancel buttons.
-----------------

How can i supress this?

Bascially I'm loading the contents (<body>) from a text file, wrapping it in
html headers and saving to a temp.html which i then
.Navigate({pathto}\temp.html) to. Works well.

When done i extract the body content and save to its original source

file. So i dont care for this message.

I cant call document.Exec("SaveAs",false,{pathto}\temp.html) as this

causes
the FileSave dialog to appear. The third argument is ignored as part of

the
underlying security policy (cos webpages could upload to your HD at that
point i suppose).

Am stuck. Any help any of you can give this would be appreciated.


Nov 15 '05 #3

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

Similar topics

17
by: gokul | last post by:
Hi, Iam a newbie to dotnet and I experience problems in using the Browser control in VB .net. Though Iam able to use it with its basic features, I need to customise it. ...
1
by: mfdatsw1 | last post by:
I have a .NET VB form that contains a Web Browser control. In the document in the Web Browser I have JavaScript that responds to certain click events within nodes (not buttons or other controls)....
9
by: hzgt9b | last post by:
I am using a web browser control to display some PPT slides saved as HTML. My client has recently asked that the background of the browser be changed to sonething other than white so that the...
10
by: Hans Merkl | last post by:
Hi, I have written an pap with .NET 2.0 and c# that uses MSHTML. It works fine on my development machine but on machines I deploy it to I get the following exception when ever I call MSHTML. ...
0
by: news.austin.rr.com | last post by:
hi i am using the miscrosoft browser control on a windows form (win form) to extract html content to a local html file. I use the browser control and mshtml.IHTMLDocument2 as shown below. ...
0
by: Atara | last post by:
Our application was build with VS 2003. I have tried to run it on a computer with .Net 2.0 (but without .Net 1.1 , as it should be used) and I got the following error - ...
2
by: NG | last post by:
Hi All This is a post further to my previous problem that I solved with the help of my friends at csharp group. I have a UI application that has a web-browser. When this application is run...
11
by: Lucky | last post by:
hi guys, i need to parse html data that i've got from "Inet" object in vb6. now i want to prase the html data. here i got 2 options. one is MSXML and other is MSHTML. i tried both of them but i...
5
by: Jason | last post by:
Hi, I'm developing an HTML Editor Control using VB.Net 2003 for an application that used to use the DHTML Editor Control that is no longer supported. Well, it's been fun but I've hit a wall with...
0
by: =?Utf-8?B?bXQ=?= | last post by:
I am writing a browser toolstrip bar that sits in IE. How do I set a cookie in the browser for a specific domain before the user navigates to that domain. I only have access to IE as an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.