To make text box to accept only numbers, in key press event of that textbox u can code like this
If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) = False Then
e.Handled = True
MsgBox("Please enter valid number ")
End If
i think u can mannage other one..
Last edited by Pgmer; Jun 3rd, 2008 at 3:24 am.
Reputation Points: 51
Solved Threads: 112
Practically a Master Poster
Offline 668 posts
since Apr 2008