G Guest Dec 15, 2005 #1 Hello, Is there any way to enable a .Net 2.0 WebBrowser control for edit mode? Thank you, Mark
H Herfried K. Wagner [MVP] Dec 15, 2005 #2 Mark said: Is there any way to enable a .Net 2.0 WebBrowser control for edit mode? Click to expand... AFAIK no. You may want to use the IE5 DHTML Edit control (ActiveX control) instead.
Mark said: Is there any way to enable a .Net 2.0 WebBrowser control for edit mode? Click to expand... AFAIK no. You may want to use the IE5 DHTML Edit control (ActiveX control) instead.
C Charles Law Dec 15, 2005 #3 Hi Mark In the DocumentComplete event: <snippet> Dim doc2 As mshtml.IHTMLDocument2 doc2 = DirectCast(WebBrowser1.Document.DomDocument, mshtml.IHTMLDocument2) doc2.designMode = "On" </snippet> HTH Charles
Hi Mark In the DocumentComplete event: <snippet> Dim doc2 As mshtml.IHTMLDocument2 doc2 = DirectCast(WebBrowser1.Document.DomDocument, mshtml.IHTMLDocument2) doc2.designMode = "On" </snippet> HTH Charles
R Ryan Milligan Dec 24, 2005 #4 Another way would bew to use Reflection. See my c# example below: System.Reflection.PropertyInfo pi = this.webBrowser1.Document.DomDocument.GetType().GetProperty("designMode"); pi.SetValue(this.webBrowser1.Document.DomDocument, "On", null); -Ryan
Another way would bew to use Reflection. See my c# example below: System.Reflection.PropertyInfo pi = this.webBrowser1.Document.DomDocument.GetType().GetProperty("designMode"); pi.SetValue(this.webBrowser1.Document.DomDocument, "On", null); -Ryan