Private Sub mtxtLIP_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles mtxtLIP.KeyUp
Dim segments As String() = mtxtLIP.Text.Split(".")
Dim segment As String
For Each segment In segments
If segment > 255 Then
picLIP.Visible = True
Else
picLIP.Visible = False
End If
Next
End Sub
If int.Parse(segment) > 255 Then
Cags said:*NB it sounds like your using .Net 2.0 in which case you could use TryParse(), if you do however note the overload is different to Parse()Visual Basic:If int.Parse(segment) > 255 Then