C#
cnhgj
这个作者很懒,什么都没留下…
展开
-
UrlDecode
private void button1_Click(object sender, System.EventArgs e) { string test = "%C4%E3%BA%C3%B0%A1+sdfsfa%26"; MessageBox.Show(UrlDecode(test)); } string HexToStr(string HexSource) { s原创 2004-08-04 12:22:00 · 1630 阅读 · 0 评论 -
屏蔽webBrowser右键
public delegate void DHTMLEvent(IHTMLEventObj e); public class DHTMLEventHandler { public DHTMLEvent Handler; HTMLDocument Document; public DHTMLEventHandler(HTMLDocument doc) { this.Document原创 2004-08-08 22:54:00 · 2472 阅读 · 1 评论 -
设置webBrowser编码
添加引用Microsoft.mshtmlusing mshtml;DocumentDownComplate eventobject refLevel = 7;IHTMLDocument2 m_hDoc = (IHTMLDocument2)axWebBrowser1.Document;m_hDoc.charset = "gb2312";axWebBrowser1.Refresh2(ref原创 2004-08-08 22:55:00 · 5893 阅读 · 0 评论 -
c#中用axWebBrowser中提交表单,或点击某个对象
dddd.htm -----------------------------------------------------------------------------------form1.csusing System;using System.Drawing;using System.Collections;using System.ComponentModel;using Syste原创 2004-12-14 13:36:00 · 3029 阅读 · 4 评论 -
复制目录
csvoid copyDirectory(string sourcePath, string destinationPath){ foreach(string filestr in System.IO.Directory.GetFiles(sourcePath)) { if (!System.IO.Directory.Exists(destinationPath)) System.IO.Di原创 2004-12-15 15:59:00 · 1310 阅读 · 1 评论