Hello,
I have a Visual Basic.Net form with just one TextBox that I am
using to receive multiple/series of data (via array/index), but
the cursor never returns back to the TextBox. The cursor can only
return manually with the aid of mouse or tab.
How do I write a code that returns/replaces the cursor automatically
to the same TextBox every time I press /click the button
Best Regards
Chike

How do I write a code that returns/replaces the cursor automatically to a chosen TextBox?
AmirZargham
Hi Christian,
You are right, thanks a million.
Best Regards
Chike
Gris
Hi happy coding
It work jus fine and that of Christian's TextBox.Focus() too,
I'm now having problem of choice, any dis/addvantage between the options
i.e. between the "Me.TextBox1.Select()" and "tInmata.Focus()"
Chike
ewaldt
I believe that textbox1.Focus() is what you want. ( where the textbox is called textbox1 ).
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassfocustopic.asp
clstephenson
the method provides overrides to allow the actual selection of text within the textbox also!