web browser/mshtml problem

  • Thread starter Thread starter Tam Inglis
  • Start date Start date
T

Tam Inglis

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.
 
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.
 
Sorry, should have been plainer.

Its the webbrowser that generating these errors, not VS.NET :-)


Nicholas Paldino said:
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]
- (e-mail address removed)

Tam Inglis said:
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.
 
Hi Tam,
Would you kindly inform me if you have any success with this problem.
It seem to mee (not what ive been searching trought google for over
an hour) that is a big problem.
Thanks in advance.
(e-mail address removed)
João Paulo.
 

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

Back
Top