0

hello please help me on this problem....i put this in form load

txtunit.text = "C"

my problem is that how can i position the cursor after the letter C..if i use txtunit.setfocus the cursor can be found before the letter C but i want it after...please help me.. thanks in advance...hoping for your positive responds...

5
Contributors
8
Replies
9
Views
7 Years
Discussion Span
Last Post by Jx_Man
0

hello please help me on this problem....i put this in form load

txtunit.text = "C"

my problem is that how can i position the cursor after the letter C..if i use txtunit.setfocus the cursor can be found before the letter C but i want it after...please help me.. thanks in advance...hoping for your positive responds...

hi,
hoping this will help.

go to the 'GotFocus' event procedure of the 'txtunit' control and key in the following

SendKeys "{end}"

the code should look like this

Private Sub txtunit_GotFocus()
  
  SendKeys "{end}"
  
End Sub
0

hi thanks for the reply, can you tell me what is that sendkeys? ...hoping for your positive responds.

0

hi hello,

can i ask how to put the cursor in the middle of the textbox?..
hoping for your positive responds....

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.