HighTechTalks DotNet Forums  

WebBrowser Control Garbles when Set to EditMode

VB.net microsoft.public.dotnet.languages.vb


Discuss WebBrowser Control Garbles when Set to EditMode in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
cellocoder
 
Posts: n/a

Default WebBrowser Control Garbles when Set to EditMode - 06-27-2010 , 03:11 PM






I have the webbrowser control and it is set to designmode like this:

theWebBrowser.AllowNavigation = False
theWebBrowser.AllowWebBrowserDrop = False
theWebBrowser.IsWebBrowserContextMenuEnabled = False
theWebBrowser.ScriptErrorsSuppressed = True
theWebBrowser.ActiveXInstance.document.designmode = "On"

I have tried something similar using IE and Firefox by running this in
the browser:

javascript:document.body.contentEditable='true';
document.designMode='on'; void 0

They both put the the page in edit mode, but the first way garbles the
page. The second works just fine, not changing anything. I have tried
a number of things, such as running the JavaScript against the
webbrowser control. But the result is the same.

I am surprised that I haven't found any mention of this anywhere

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.