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?
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?
You can move the caret position in a textbox using TextBox.Select(...)
. Just set the start
parameter to the desired location of the caret and set length
param to 0 or 1 (can't remember exactly if length needs to be 1). See: http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx
You can move the caret position in a textbox using
TextBox.Select(...)
. Just set thestart
parameter to the desired location of the caret and setlength
param to 0 or 1 (can't remember exactly if length needs to be 1). See: http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx
thank you ;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.