Controlling Textbox Scrollbars with a text find operation

P

plonk

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
 
L

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.
 
L

Lit

Sorry the wrong post.....


Lit said:
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.
 
P

plonk

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.












- Show quoted text -

Nevermind. I figured it out...

the Method I was looking for was ScrollToCaret.
 

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