登录
首页 » C# » WebBrowser 模拟上传文件 实例

WebBrowser 模拟上传文件 实例

于 2013-04-19 发布
0 230
下载积分: 1 下载次数: 0

代码说明:

实现了模拟按键与选择文件等功能,详细实现见压缩包 对于IE7及以下,可以简单的利用SendKeys.SendWait方法设置input值,当然首先要将焦点集中在该控件上,利用HtmlElement的focus方法很容易做到。具体可以看后面的代码。但是对于IE8来说,它的安全性更高,具体参看文章http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx。 对于IE8来说,file input只能模拟点击upload按钮,然后在弹出的对话框中输入文件名,然后点击确定。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C#通过读取硬盘序列号,生成license文件。
    说明:  C#通过读取硬盘序列号,生成license文件。(C# generates the license file by reading the serial number of the hard disk.)
    2019-05-17 16:54:11下载
    积分:1
  • Project5
    针对大型集群存储系统中磁盘SMART信息,对磁盘故障进行预测(failure predict)
    2017-03-29 20:25:36下载
    积分:1
  • 9513787
    说明:  xml_io_tools,可以实现xml文件的解析,只需一条语句即可,方便好用(Xml_io_tools, can be used to parse xml files. It only needs a single statement, which is convenient and easy to use.)
    2018-12-30 08:31:51下载
    积分:1
  • PeerYou远控制软件源代码
    完全实现注册表处理,文件处理。服务端采用多线程服务,能最好的处理SOCKET请求。数据接收、发送函数可以说是现阶段最好的,采用异步重叠操作。可以取得被控机器上的硬件信息,文件信息,注册表以及进行屏幕控制。 代码中的SOCKET重叠I/O的实现也很值得参(complete registry handling, document handling. Server using multithreading services will best address SOCKET request. Data reception, sending function can be said at this stage the best, using asynchronous overlapping operations. Machines can get charged with the hardware information, document information, registry and control for the screen. SOCKET code of overlapping I/O is also the realization worth Participation)
    2005-05-07 13:56:36下载
    积分:1
  • C#版 摄像头大头贴 实例下载
    摄像头大头贴 实例 源码
    2013-02-01下载
    积分:1
  • 651703
    卷轴位图,通过不断计算坐标,由定时器发送消息相应,反复重新贴图!()
    2017-09-17 07:59:18下载
    积分:1
  • Snow
    调用API 桌面飘雪,圣诞雪花、、、、、、、、、、、、、、、、、、、、、、、
    2013-11-09 20:27:40下载
    积分:1
  • openclosetime
    读取系统日志,获取开关机时间之后做计算工时(After reading hours to do the calculation system logs for switch time)
    2014-07-15 11:00:45下载
    积分:1
  • C#读取/写入ini文件实例
    C#读取和写入ini文件
    2013-01-20下载
    积分:1
  • Virtual-Desktop
    多虚拟桌面的实现!包括了多个虚拟桌面的管理,添加新的虚拟桌面等功能(Implementation of multiple virtual desktops! Including a number of virtual desktop management, adding new features such as virtual desktops)
    2011-09-28 23:52:43下载
    积分:1
  • 696516资源总数
  • 106618会员总数
  • 4今日下载