I don’t want the program to accept letters

I am creating a visual basic project and I don't want the program to accept input if the user input a letter. I want only numbers to be accepted. In addition, If the user enter a letter or not a whole number the program will return a message stating "Please enter a valid number" I just need a sample code to serve as my reference. please give me some clue on how to code this.
Thanks.
