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
ddanbe commented: He! did not know that. Thanks :) +6
sknake commented: Excellent!!! That is _exactly_ what I would have said :P +6
ddanbe commented: Helpfull explanation! +5
Geekitygeek commented: Clear and concise reply. Great work as always :) +1
Antenka commented: hehe .. nice finish :D +0
William Hemsworth commented: great one :) +0
Geekitygeek commented: always there first with great info :p +1
RoyMicro commented: Helpful +1
ddanbe commented: Nice snippet! +5
Geekitygeek commented: really informative article :) +1
ddanbe commented: Yes, nice article! +5
ddanbe commented: Clear explanation. +5
Geekitygeek commented: clear and concise :) +1
DdoubleD 315 Posting Shark
kvprajapati commented: Well said! +6
brightsolar commented: Wow, Practically a Posting Shark = True lol. +1
Geekitygeek commented: a good answer and a clear explaination :) +1
TobbeK commented: Very kind, clear and helpful in his comments +2