Red de conocimiento informático - Material del sitio web - Cómo utilizar un navegador para obtener el código fuente de una página web

Cómo utilizar un navegador para obtener el código fuente de una página web

Estoy usando vb6 y no estoy muy familiarizado con c

Ingrese la URL y presione Enter para mostrar el código fuente

Private Sub Command1_Click()

WebBrowser1. Navegar Editbox1.Text

End Sub

Private Sub Editbox1_KeyPress(KeyAscii As Integer)

Si KeyAscii = 13 Entonces

Establezca xmlHTTP1 = CreateObject ("Microsoft.readyState lt;gt; 4

DoEvents

Wend

Editbox2.Text = xmlHTTP1.responseText

Establecer xmlHTTP1 = Nada

Finalizar si

Finalizar sub