hi

Asked By Anish V
01-Feb-10 12:29 AM
Earn up to 0 extra points for answering this tough question.

Dear All,
I need a help in VB6.0. I want to set the cursor after  text in the textbox. Does anyone has any idea?
Thanks in advance
Anish

  re: hi

Sakshi a replied to Anish V
01-Feb-10 12:37 AM

this will do that,

Text1.SelStart = len(text1.text)


Thanks and Regards,
www.CodeCollege.NET
www.InterviewsGuru.info

 

  re: hi

Santhosh N replied to Anish V
01-Feb-10 12:39 AM

You can make use of SelStart property of the textbox and assign the length of the text length to that, so that cursor would be placed at the end..

Text1.SelStart = Len(Text1.Text)

  re: hi

paresh tank replied to Anish V
01-Feb-10 12:40 AM

Hi Anish,

 

It is possible to set cursor at any position dynamically at run time using following code.

 

private Sub Text1_GotFocus()
Text1.SelStart = number
End Sub

 

in place of number you have to specify position in text box.

It will work for you..

 

Ok….

 

  re: re: hi
Anish V replied to paresh tank
01-Feb-10 12:54 AM

Hello Paresh,

It Really worked. Thanks for your help.

Regards
Anish


  re: re: hi
Anish V replied to Sakshi a
01-Feb-10 12:55 AM
Hi Sakshi,

Thanks for your reply. It works.

Regards
Anish
  re: re: hi
Anish V replied to Santhosh N
01-Feb-10 12:56 AM
Hi egg egg,

Thanks for your reply. It works.

Regards
Anish
  re: re: re: hi
Santhosh N replied to Anish V
01-Feb-10 12:57 AM
cheers!!
  re: re: re: hi
Sakshi a replied to Anish V
01-Feb-10 04:05 AM

welcome.


Thanks and Regards,
www.CodeCollege.NET
www.InterviewsGuru.info

 

Create New Account