Home All Groups Group Topic Archive Search About

ScrollToCaret without focus on the control

Author
27 Jun 2005 9:45 AM
Sameh Ahmed
Hello there
I there a way to use ScrollToCaret without the control in focus?
Any suggestions?
Regards
Sameh

Author
27 Jun 2005 10:52 AM
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]

Show quoteHide quote
"Sameh Ahmed" <essop***@hotmail.com> wrote in message
news:OzIdgyveFHA.1448@TK2MSFTNGP14.phx.gbl...
> Hello there
> I there a way to use ScrollToCaret without the control in focus?
> Any suggestions?
> Regards
> Sameh
>