代码如下:生成的exe在ie7下面,窗体当中可以正常的显示验证码,但到ie6下面却没反应,不显示?为什么啊?
Private Sub Command1_Click()
Dim IE
Set IE = CreateObject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "http://login.sina.com.cn/signup/signup.php?entry=blog"
While IE.Busy Or IE.ReadyState <> 4
Wend
IE.Document.getElementById("door").focus
Picture1.AutoSize = True
Dim CtrlRange As Object
Set CtrlRange = IE.Document.body.createControlRange
CtrlRange.Add IE.Document.getElementById("check_img")
CtrlRange.execCommand ("Copy")
Picture1.Picture = Clipboard.GetData()
Set IE = Nothing
End Sub
Private Sub Command1_Click()
Dim IE
Set IE = CreateObject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "http://login.sina.com.cn/signup/signup.php?entry=blog"
While IE.Busy Or IE.ReadyState <> 4
Wend
IE.Document.getElementById("door").focus
Picture1.AutoSize = True
Dim CtrlRange As Object
Set CtrlRange = IE.Document.body.createControlRange
CtrlRange.Add IE.Document.getElementById("check_img")
CtrlRange.execCommand ("Copy")
Picture1.Picture = Clipboard.GetData()
Set IE = Nothing
End Sub
解决方案 »
- 我使用ADO+SQL语句(Create table)的方式建立EXCEL,请问如何指定其它的工作表的名称?
- 项目文件排列出现混乱?请高手支招!!....散100分
- Vb立即窗口怎么用?
- Winsock传递结构的问题,请进
- SQL语法寻求帮助
- 连接问题,高分求解!不难,但要完整!!!因本人水平有限,需要源代码!各位多帮忙!
- 在VB中怎么接收录音设备,并记下来
- 请问一个TreeView和一个ListView怎样实现拖放操作?
- 如何制作透明的窗体?请各路大侠赐教!
- 如何使用readfile and writefile
- 请教为什么给图片加字后文件大小巨增??
- VB版敢有100、200分的技术帖?看来每天赚可用分也是一种技术。
Dim IE
Set IE = CreateObject("Internetexplorer.application")
IE.Visible = True
IE.Navigate "http://login.sina.com.cn/signup/signup.php?entry=blog"
While IE.Busy Or IE.ReadyState <> 4
Wend
IE.Document.getElementById("door").focus
Picture1.AutoSize = True
Dim CtrlRange As Object
Set CtrlRange = IE.Document.body.createControlRange
CtrlRange.Add IE.Document.getElementById("check_img")
While IE.Busy Or IE.ReadyState <> 4
Wend
CtrlRange.execCommand ("Copy")
Picture1.Picture = Clipboard.GetData()
Set IE = Nothing
End Sub