Home > Software engineering > Help: SHDocVwCtl WebBrowser types do not match, an error, please comment
Help: SHDocVwCtl WebBrowser types do not match, an error, please comment
Time:09-26
Dim WithEvents WebBrowser1 As SHDocVwCtl. WebBrowser Dim dWinFolder As New ShellWindows Dim objIE As Object Private Declare Function ShellExecute Lib "shell32. DLL" Alias "ShellExecuteA" (ByVal HWND As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd) As Long As Long Private Declare Function ShowWindow Lib "user32" (ByVal HWND As Long, ByVal nCmdShow As Long) As Long Dim objIehwnd As Long
Const JgDz="* * * * * * *" 'login address
Dim r As Long
Private Sub CommandButton1_Click login () ' The Set WebBrowser1=Nothing R=ShellExecute (0, "open", Jgdz, 0, 0, 3) For r=1 To 10000 For Each objIE dWinFolder In If objIE. LocationURL=Jgdz Then
The Set WebBrowser1=objIE?????? Vb tip: error, type mismatch
WebBrowser1. Silent=True ObjIehwnd=objIE. The HWND CommandButton1. Enabled=False The Exit Sub End the If Next Next End Sub
I wonder if there are other mistakes: no, please comment, thank you!!!
CodePudding user response:
To such as are ok? Dim WithEvents WebBrowser1 As SHDocVwCtl. WebBrowser_V1
CodePudding user response:
Thank you very much!!!!!! To Dim WithEvents WebBrowser1 As SHDocVwCtl WebBrowser_V1, no error, But there is no DocumentComplete WebBrowser1, please comment,