467,122 Members | 1,329 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

Controlling Textbox Scrollbars with a text find operation

Hi

I have a teeny problem that I cannot solve.

I load HTML Source into a textbox and have a "find' button that
searches through the text using the Instr Function, and highlights the
result using the Selectionlength and Selectionstart properties.

This is working perfectly, however if the source does not fit in the
textbox, I sometimes have to manually scroll down to see the
highlighted selection.

It there a way to make the textbox automatically scroll down to make
the highlighted selection visible?

I'm using VB.net on Visual Studio 2005
thanks for the help :D

Jun 20 '07 #1
  • viewed: 1813
Share:
3 Replies
Lit
I would like to welcome you to the .NET jungle.

I find Google and news groups to be the best. You are in the right place.

You need several books, none are or can be complete and perfect.
I got 10s of books already and not enough. you might need 10s every 6
months.

do not get discouraged by this just start and never quit.
"plonk" <pl***@orcon.net.nzwrote in message
news:11**********************@d30g2000prg.googlegr oups.com...
Hi

I have a teeny problem that I cannot solve.

I load HTML Source into a textbox and have a "find' button that
searches through the text using the Instr Function, and highlights the
result using the Selectionlength and Selectionstart properties.

This is working perfectly, however if the source does not fit in the
textbox, I sometimes have to manually scroll down to see the
highlighted selection.

It there a way to make the textbox automatically scroll down to make
the highlighted selection visible?

I'm using VB.net on Visual Studio 2005
thanks for the help :D

Jun 21 '07 #2
Lit
Sorry the wrong post.....
"Lit" <sq**********@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP05.phx.gbl...
>I would like to welcome you to the .NET jungle.

I find Google and news groups to be the best. You are in the right place.

You need several books, none are or can be complete and perfect.
I got 10s of books already and not enough. you might need 10s every 6
months.

do not get discouraged by this just start and never quit.
"plonk" <pl***@orcon.net.nzwrote in message
news:11**********************@d30g2000prg.googlegr oups.com...
>Hi

I have a teeny problem that I cannot solve.

I load HTML Source into a textbox and have a "find' button that
searches through the text using the Instr Function, and highlights the
result using the Selectionlength and Selectionstart properties.

This is working perfectly, however if the source does not fit in the
textbox, I sometimes have to manually scroll down to see the
highlighted selection.

It there a way to make the textbox automatically scroll down to make
the highlighted selection visible?

I'm using VB.net on Visual Studio 2005
thanks for the help :D


Jun 21 '07 #3
On Jun 21, 12:05 pm, "Lit" <sql_agent...@hotmail.comwrote:
I would like to welcome you to the .NET jungle.

I find Google and news groups to be the best. You are in the right place.

You need several books, none are or can be complete and perfect.
I got 10s of books already and not enough. you might need 10s every 6
months.

do not get discouraged by this just start and never quit.

"plonk" <p...@orcon.net.nzwrote in message

news:11**********************@d30g2000prg.googlegr oups.com...
Hi
I have a teeny problem that I cannot solve.
I load HTML Source into a textbox and have a "find' button that
searches through the text using the Instr Function, and highlights the
result using the Selectionlength and Selectionstart properties.
This is working perfectly, however if the source does not fit in the
textbox, I sometimes have to manually scroll down to see the
highlighted selection.
It there a way to make the textbox automatically scroll down to make
the highlighted selection visible?
I'm using VB.net on Visual Studio 2005
thanks for the help :D- Hide quoted text -

- Show quoted text -
Nevermind. I figured it out...

the Method I was looking for was ScrollToCaret.

Jun 21 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Giulio Santorini | last post: by
2 posts views Thread by Martin Hazell | last post: by
3 posts views Thread by MuZZy | last post: by
3 posts views Thread by DraguVaso | last post: by
5 posts views Thread by marfi95@yahoo.com | last post: by
8 posts views Thread by GaryDean | last post: by
1 post views Thread by Developer | last post: by
2 posts views Thread by Benny | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.