I need validation code in Visual Basic

Hi fellow members. I need a script for validation code in Visual Basic. I'm trying to make a text box program with user interaction where it will react to the user if the text input is wrong. I'm using visual Basic 6. Thanks in advance for the help.
