|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi,
i have a setup project which i created with the vs .net deployment projects tool. i have some custom screens which i added using the UI editor of the setup project. now i want to know how i can validate the values as and when the user enters them. meaning how can i make sure only numbers are entered and so on. thanks in advance. regards, karthik |
|
#2
|
|||
|
|||
|
Here's an example of a textbox, the user can only enter numbers & backspace:
PrivateSub tbTest_KeyPress(ByVal sender AsObject, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles tbTest.KeyPress If ((e.KeyChar < "0" Or e.KeyChar > "9") And (e.KeyChar <> Chr(8)) Then e.Handled = True EndIf EndSub |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > deployment setup project |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|