A
atn2002
With WebBrowser control in .NET 2.0, in DesignMode, when I double click
a word to select it and then try to type, it won't let me, until I
press Delete or Backspace and manually click on the page to reset the
carriage. Clicking and dragging to select text works as expected, it's
only when double clicking. This behaviour doesn't seem to be a problem
with the past DOM, but I'm trying to avoid that path again. Anyone
have any ideas?
It would be interesting to see who else can duplicate this. Simply
create a new form in VS, add a WebBrowser Control and then add this
line in the constructor or load event:
this.webBrowser1.Document.DomDocument.GetType().GetProperty("designMode").SetValue(this.webBrowser1.Document.DomDocument,
"On", null);
or
this.webBrowser1.Document.ExecCommand("EditMode", true, null);
(Neither work)
Norm
a word to select it and then try to type, it won't let me, until I
press Delete or Backspace and manually click on the page to reset the
carriage. Clicking and dragging to select text works as expected, it's
only when double clicking. This behaviour doesn't seem to be a problem
with the past DOM, but I'm trying to avoid that path again. Anyone
have any ideas?
It would be interesting to see who else can duplicate this. Simply
create a new form in VS, add a WebBrowser Control and then add this
line in the constructor or load event:
this.webBrowser1.Document.DomDocument.GetType().GetProperty("designMode").SetValue(this.webBrowser1.Document.DomDocument,
"On", null);
or
this.webBrowser1.Document.ExecCommand("EditMode", true, null);
(Neither work)
Norm