Jordan you can use regular expression (Namespace:
System.Text.Reg ularExpressions ) for validating the IP
address in the textbox.
Regular Expression to validate Web address:
^(http|https|ft p)\://(((((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5]))))|((([a-z0-9\-])+\.)+([a-z]{2}\.[a-
z]{2}|[a-z]{2,4})))$
Hope this helps.
[color=blue]
>-----Original Message-----
>Hi, this is really more of a WinForm question. How do I[/color]
validate a text box[color=blue]
>on a winform to make sure it is a web address?
>
>I would be able to do it in ASP.NET but not with VB.NET
>
>Thanks
>Jordan
>
>
>.
>[/color]
System.Text.Reg ularExpressions ) for validating the IP
address in the textbox.
Regular Expression to validate Web address:
^(http|https|ft p)\://(((((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4]
[0-9])|(2[0-5][0-5]))))|((([a-z0-9\-])+\.)+([a-z]{2}\.[a-
z]{2}|[a-z]{2,4})))$
Hope this helps.
[color=blue]
>-----Original Message-----
>Hi, this is really more of a WinForm question. How do I[/color]
validate a text box[color=blue]
>on a winform to make sure it is a web address?
>
>I would be able to do it in ASP.NET but not with VB.NET
>
>Thanks
>Jordan
>
>
>.
>[/color]