Sir, I am now doing a Program that has numbers of text boxes , combo Boxes and datetimePickers.
I needed the code to:-
Function: Enter, Back Space and Escape Keys.
I got the Code to function Enter Key:-
(if(e.key code==keys.Enter)
{
textBox2.Focus)
}
but what i need is when I press Enter Key from text Box1, i want to cursor to be in the starting Point to the textBox2 if text Box is !=null
when I press Back Space Key, i want to return to the Starting Point previous text Box if text Box!=null
if all text Box is ==string.Empty, I want the rounding of cursor throughout all the text Box when press Back Space Key.
Please help me.
Functioning of Enter, Escape and Backspace Keys in Textbox
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sunny SharmaRank #223 · 11.1K reputationPosted May 25, 2013, 6:47 AM EDT
Bineesh ViswanathRank #1,681 · 907 reputationPosted May 28, 2013, 4:00 AM EDT