ScrollToCaret without focus on the control

  • Thread starter Thread starter Sameh Ahmed
  • Start date Start date
S

Sameh Ahmed

Hello there
I there a way to use ScrollToCaret without the control in focus?
Any suggestions?
Regards
Sameh
 
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]
 
Back
Top