The trick to finding Google answers is to precede your search with ".NET", so I would search like this:
".net ip address parse"
But here is the answer you are looking for:
Dim IPAddress as System.Net.IPAddress
If NOT System.Net.IPAddress.TryParse(TextBox1.Text,IPAddress) then
MsgBox "Invalid Address"
End If