Using the IHtmlDocument2.designMode property set to On
to switch a WebBrowser
control hosted on a Windows Forms form to editing mode suddenly stopp
What's your exact code?
If I set the following code:
private void cbDesign_CheckedChanged(object sender, EventArgs e){
var instance =
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(
wbView.ActiveXInstance,
null,
@"Document",
new object[0],
null,
null, null );
var objArray1 = new object[] { cbDesign.Checked ? @"On" : @"Off" };
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSetComplex(
instance,
null,
@"designMode",
objArray1,
null,
null,
false,
true );
The IE9 Web Browser instance enters designMode without any problems. If you change the "Zeta" example to not set the document text after entering design mode, it also works fine.