vb 连接网页 几秒中后网页会自动关闭???

来源:百度知道 编辑:UC知道 时间:2024/05/24 06:00:05

这个我用过,不会自动关闭。

Private Sub Open_Click()
If Text1.Text <> "" Then
WebBrowser1.Navigate2 (Text1.Text) '打开网页
WebBrowser1.Visible = True
'Text2.Visible = False
End If
End Sub

Private Sub Display_Click()
Text2.Visible = True
Inet1.Protocol = icHTTP
Inet1.OpenURL (Text1.Text)
Text2.Text = Inet1.OpenURL(Text1.Text) '显示网页源代码
'WebBrowser1.Visible = False
End Sub

不会。
肯定是网页本身问题或你的VB程序的问题。

应该不会,你用IE打开看看

问题没说清楚