You can use the designMode property to put Microsoft Internet Explorer into a mode where you can edit the current document.
[使用designMode 属性使页面可编辑]
While the browser is in design mode, objects enter a UI-activated state when the user presses ENTER or clicks an object that has focus, or when the user double-clicks the object. 
[编辑状态下得页面,当用户使用回车或者在某一控件上使用按键,或者双击控件,对象将被激活]
Objects that are UI-activated have their own window within the document. You can modify the UI only when the object is in a UI-activated state.
[激活的对象有自己的编辑窗口,仅在此状态下可编辑]
You cannot execute script when the value of the designMode property is set to On.
[当designMode 置on的时候,将无法执行脚本]

解决方案 »

  1.   

    to 小艾,谢谢,你提供的这些信息来自msdn,主要通过vc实现,现在想做c#版的,期待有更多的帮助。
      

  2.   

    我本来用EHTMLEdit.OCX实现了对网页编辑的控制,但是在发现微软几乎已经放弃EHTMLEdit.OCX后,正在开始改用WebBrowser作为网页编辑器。WebBrowser的资料很少,正在为插入表格四处搜索呢。痛苦~~~~~~~~
      

  3.   

    see the tool provided by the author of WebMatrix:
    HTML viewing and editing component for WinForms apps
    http://www.nikhilk.net/Entry.aspx?id=11also seeUsing the WebBrowser control in .NET
    http://www.codeproject.com/csharp/webbrowser.asp29.2 How can I enable editing for the WebBrowser?
    http://www.syncfusion.com/FAQ/WinForms/FAQ_c100c.aspThe MSHTML Editing Platform in Internet Explorer 5.5
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmshtml/html/mshtmleditplatf.asp