![](https://hdeleon.org/wp-content/uploads/2019/03/Microsoft_.NET_logo-150x150.png)
Some occasions we need to force a textbox to accept only numbers, that the user can’t key letters and with this add validation in user interface. The following code forces the user to only key a number, you shall click in the control and click in KeyPress and add the next code: If you wantRead More