ADO DOT NET
Centurion
- Joined
- Dec 20, 2006
- Messages
- 160
I always get invalid number error while using this:
I am using VB.NET 2005, .NET Framework 2.0.
Visual Basic:
Dim MyRes As Boolean
Dim MyInt As Integer = Integer.TryParse(NumericUpDown1.Value, MyRes)
If MyInt < 1 Or MyInt > 65535 Then
MsgBox("invalid number")
End If