Problem using Winforms WebBrowser control as editor
Posted
by thecaptain0220
on Stack Overflow
See other posts from Stack Overflow
or by thecaptain0220
Published on 2010-05-03T21:08:17Z
Indexed on
2010/05/03
21:48 UTC
Read the original article
Hit count: 592
I am currently working on a project where I am using a WebBrowser control as an editor. I have design mode turned on and it seems to be working. The issue im having is when I try to save the Document and load another it pops up the "This document has been modified." message. What I am trying to do is as simple as this
if (frontPage)
{
frontPage = false;
frontContent = webEditor.DocumentText;
webEditor.DocumentText = backContent;
}
else
{
frontPage = true;
backContent = webEditor.DocumentText;
webEditor.DocumentText = frontContent;
}
Like I said everytime I enter some text and run this code it just pops up a message saying its been modified and asks if I want to save. How can I get around this?
© Stack Overflow or respective owner