0

in my program, if i press enter on the first textbox, than i set the focus to the second textbox. but the value of

second textfield is for example A. so the focus go fore the A instead of after A.

what can i do?

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by tchiloh
Featured Replies
  • You can move the caret position in a textbox using [icode]TextBox.Select(...)[/icode]. Just set the [icode]start[/icode] parameter to the desired location of the caret and set [icode]length[/icode] param to 0 or 1 (can't remember exactly if length needs to be 1). See: [URL="http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx[/URL] Read More

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.