Private IsSaveFile As Boolean Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click IsSaveFile = True WebBrowser1.Navigate("http://www.nifty.com/") End Sub Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted If IsSaveFile = False Then Return End If IsSaveFile = False Dim fileName As String = "C:\vb\web.txt" Dim contents As String = WebBrowser1.Document.Body.InnerText Dim encoding As System.Text.Encoding = System.Text.Encoding.GetEncoding(WebBrowser1.Document.Encoding) IO.File.WriteAllText(fileName, contents, encoding) End Sub