Private Sub Command1_Click ()
WebBrowser1. Navigate Text1. Text
End Sub
Private Sub Form_Load ()
WebBrowser1. Navigate "https://www.baidu.com/"
End Sub
Private Sub Timer1_Timer ()
Text2. Text=WebBrowser1. Document. DocumentElement. InnerHTML
End Sub
CodePudding user response:
Not "take less than", but can't you see?Your TextBox MultiLine attribute is not open!
To the properties of the window, in the design of the MultiLine property is set to True,
In addition, also the ScrollBars attribute is set to 3 (Both: horizontal, vertical scroll bar),
And you should be in WebBrowser1_DocumentComplete () event to get the data, not to use the Timer control to deal with,
CodePudding user response:
First of all confirm use IE to open the corresponding web site;Secondly confirm your has launched the Timer control (in the Timer () event and breakpoint to see if);
Finally the temporary closure of antivirus/firewall software to try again,
CodePudding user response:
Baidu.com can't open now, unicom's network,CodePudding user response: