Imports System.IO
Imports System.Net
Imports System.Text
public class MainClass
Shared Sub Main()
Dim myWebRequest As WebRequest = WebRequest.Create("http://www.domain.com")
Console.WriteLine(myWebRequest.Timeout)
myWebRequest.Timeout = 10000
Dim myWebResponse As WebResponse = myWebRequest.GetResponse()
End Sub
End Class