鹿我所录的博客

记录我在学习C#中的点点滴滴,记录下以备后来人借鉴。

 

2011年12月25日

C#中设置webBrowser为可编辑模式

摘要: C#中设置webBrowser为可编辑模式 首先在from_load事件中添加以下代码: webBrowser1.DocumentText = string.Empty; webBrowser1.Document.ExecCommand("EditMode", false, null); webBrowser1.Document.ExecCommand("LiveResize", false, null); webBrowser1.DocumentText = @"现在";然后webBrowser1里面内容就可以编辑了其中如果需要得到 阅读全文

posted @ 2011-12-25 23:23 鹿我所录 阅读(3855) 评论(0) 推荐(0)

导航