ScrollToCaret without focus on the control

S

Sameh Ahmed

Hello there
I there a way to use ScrollToCaret without the control in focus?
Any suggestions?
Regards
Sameh
 
M

Mona

Hi Sameh,

For this, you can first set the focus to the control via code and then call
the ScrollToCaret method. This would not require you to actively select the
control using mouse:

Me.TextBox1.Focus()

Me.TextBox1.ScrollToCaret()

Thanks

Mona[Grapecity]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top