i am developing a application .net2.0 c# windows application,
when i press the enter key, it should go to the next textbox, if other than numbers is pressed in first textbox, message box should tell "pls enter a numeric value only" so it should accept only numbers and not others
To start, this isn't the proper way to ask questions. Actually, you never
asked a question, you just told us your requirements. Nobody will do your program for you.
MODERATOR
However, I can help you get started.
As for moving to the next fields with the enter key, you will need to add an event handler to the textboxes' KeyDown event. Then check if the key was enter. The KeyEventArgs e should hold this data. Make a separate listener for each textbox, and on the case that enter is pressed, .Focus() on the next control.
As for the numeric text box, you have a couple of options. You can replace your TextBox with a NumericUpDown control. That will take numeric input as well as giving you buttons to click up and down. You can use a MaskedTextBox, and apply a mask that will only accept numbers. You can have running validation in the textbox's TextChanged event. Or, you can do your validation in the same event where you check for the Enter key.