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

WebBrowser 模拟上传文件 实例

于 2013-04-19 发布
0 174
下载积分: 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 个回复

  • GetSystemVer
    Windows下获取操作系统版本信息的小程序(Windows operating system version information under the access of small procedures)
    2009-02-06 12:01:21下载
    积分:1
  • hive
    注册表隐藏就是将系统呈现给用户的注册表信息进行修改,使得用户或检测工具无法直观地发现事实上存在的注册表内容。(Hide the system registry is presented to the user' s registry information is modified so that the user or detection tool will not intuitive to find that in fact exist in the registry contents.)
    2009-10-21 08:52:52下载
    积分:1
  • 58604450
    基于多径传输和多普勒频移的 瑞利Rayleigh信道的仿真 主要考虑不同条件下的仿真(Simulation of Rayleigh channel based on multipath transmission and Doppler shift is mainly considered under different conditions.)
    2018-09-22 13:46:13下载
    积分:1
  • Regedit
    C++实现的读写注册表的功能,可以直接读取某个键的值,设定某个键的值和删除某个键的值,非常方便。(Read and write C++ implementation of the registry function, you can directly read the value of a key, set the value of a key to delete a key value, very convenient.)
    2013-10-27 19:41:13下载
    积分:1
  • 21808102
    几个CSharp的使用com对象的例子,不错很好的源码(A few examples of CSharp use com objects, good good source)
    2017-07-12 00:03:55下载
    积分:1
  • luckyProgram
    自用的摇号软件,C++实现的,有很多不足之处。大家一起改进吧,亲们(my test program for lucky)
    2016-11-04 13:21:45下载
    积分:1
  • HIDUSB
    Windows 系统下 1.USB设备的查找: 2.发送数据到USB设备: 3.接收数据从USB设备:(Windows system 1. USB device search: 2. Send data to USB device: 3. Receive data from USB devices:)
    2008-05-27 13:26:13下载
    积分:1
  • C# 仿任务管理器源码下载 实现了 cpu/内存/进/硬盘等实时数据
    C# 仿任务管理器源码下载 实现了 cpu/内存/进程/硬盘等实时数据
    2014-01-21下载
    积分:1
  • 酒店管理源码(winform)
    酒店管理系统
    2015-09-09下载
    积分:1
  • search_file
    说明:  实现目录中文件查找,遍历,基本实现dir功能(Document the achievement of the directory search, traversal, the basic function of the realization of dir)
    2009-08-17 21:48:22下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载