473,804 Members | 3,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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({pat hto}\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.ht ml) 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 5892
Tam,

If you go to the options dialog in VS.NET, under the "Environmen t"
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.co m

"Tam Inglis" <jo***********@ btclick.com> wrote in message
news:br******** **@sparta.btint ernet.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({path to}\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.ht ml) 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.c om> wrote in
message news:O8******** ******@TK2MSFTN GP11.phx.gbl...
Tam,

If you go to the options dialog in VS.NET, under the "Environmen t"
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.co m

"Tam Inglis" <jo***********@ btclick.com> wrote in message
news:br******** **@sparta.btint ernet.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({path to}\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.ht ml) 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
57402
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. http://www.codeproject.com/books/0764549146_8.asp The above link shows where what I want is achived in C#, but I need t oa cjhive the same in VB .net. Someone help and guidance would be much appreciated.
1
687
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). How do I get information about the click event back to the parent VB form? I want the parent form to update certain information based on the ID of the node.
9
13733
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 slides "standout". I've tried setting the browser's BackColor setting, but that had no effect at run time. Any suggestions on how to control the default back color of content displayed in a web browser control?
10
11002
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. "Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
0
1339
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. mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2; using the doc object I can have this code
0
2239
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 - System.InvalidCastException: Unable to cast COM object of type 'mshtml.HTMLBodyClass' to class type ''. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type....
2
1903
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 with the URL as one of the command parameters, this application accesses the web page in its web browser and parses the data of this web-site to get the specific information this app is interested in. This application works perfectly when run from a...
11
2372
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 didnt get anything out of them. MSXML doesnt works with some keywords and consider some letters as operator so i cant go with MSXML. i tried MSHTML but it doesnt provide any way to parse the HTML data you got from other source. there is a...
5
3886
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 an intermittent problem working with editing Hyperlinks. As you can see the following HTML code contains two links each in a paragraph tag. In the Editor, when I highlight the first link and execute code to select,
0
2123
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 SHDocVw.WebBroswerClass I am trying to set the cookie using mshtml.HtmlDocument.cookie="name=value;domain=.example.com"; but when I try listening for BeforeNavigate2 event on the browser, the document field in ShDocVw.IWebBrowser2 is an HTMLDocument in...
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9130
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.