hi
i am creating html editor control , whenever i changed document text , i am getting "this document has been modified. Do you want save changes " dialogbox
can u ple tell me any one how can i stop this dialogbox
private
IHTMLDocument2 docEdit=webBrowser1.Document.DomDocument as IHTMLDocument2;docEdit.designMode =
"On";
thanks

how to remove save changes Dialogbox
BobTheBuild
Not sure, but you can simplfy your Design mode setting this way. No need to cast to an IHTMLDocument2
wbMain.DocumentCompleted +=
delegate{
wbMain.Document.DomDocument.GetType().GetProperty(
"designMode").SetValue(wbMain.Document.DomDocument, "On", null);};
wbMain.DocumentText =
"";