This is a simple guide about how to download a websites source code with Visual Basic.

Imports System.Net
Public Class Form1
Private Sub SearchButton_Click(sender As Object, e As EventArgs) Handles SearchButton.Click
Dim client As WebClient = New WebClient()
client.Headers("User-Agent") = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0"
TextBox1.Text = client.DownloadString("http://example.com/")
End Sub
End ClassThis piece of code will put the source code from example.com in a textbox called TextBox1.
Related posts:

Remove duplicates from array in VB.net
Here's a function that will remove duplicate items in a arra...

VB.net: Update Listbox with Time,Text then Autoscroll
When making applications in VB.net I often use a Listbox to ...

Loop through every letter in string in VB.net
This is a tiny bit of code that will loop and display each l...