象Dreamweaver或FrontPage的所谓的所见既所的功能是如何实现的?VB能开发出来吗?(不要他们那么强大,只要能够实现又能写代码或直接编辑都能生成HTML代码,这种功能就可以了)
象Dreamweaver或FrontPage输入文字或是代码的地方用到了什么控件,原理又是什么呢?VB中的RichTextBox 或 WebBrowser控件是否也能实现相同的功能,如何设置。如果不行,那又是用到什么控件呢?请高人提教 , 说说开发思想也行, 一定结贴!谢谢!

解决方案 »

  1.   

    最好是用webbrowser,html中很多元素都可能被激活成可编辑状态的.
    例如:
    Activating the MSHTML Editor from Visual Basic
    In Visual Basic, you can use the MSHTML Editor on the document as a whole through the designMode property. You can make an individual element editable by using the element's contentEditable property. To use the designMode property, obtain the document object from either the WebBrowser object or the InternetExplorer object and change its designMode property.Set doc = WebBrowser1.DocumentIf doc.DesignMode = "On" Then
        doc.DesignMode = "Off"
    Else
        doc.DesignMode = "On"
    End If多看看MSDN中MSHTML Editing部分或者去下载个动力文章或论坛之类的系统,看看他们的发贴或发文章那部分的实现.