472,982 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 software developers and data experts.

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
3 1943
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Giulio Santorini | last post by:
Hi, I've got two drop down list controls. When I select a value from the first one I fill the second one. And when I select a value from the second one I would like to fill another control. But...
2
by: Martin Hazell | last post by:
For various reasons, I have had to produce a quick (!) page to edit one column of data in a database with ASP.net. With this being my first foray into ASP.net, I apoligise for any basic erros I have...
3
by: MuZZy | last post by:
Hi, Is there a way to: 1. Find out if a scrollbar is currently show on the TextBox 2. Get the width of the horizontal scrollbar I am doing a UserControl with a TextBox with a small image...
3
by: DraguVaso | last post by:
Hi, I have a big multiline Textbox with scrollbars. I want to be able to look for a substring in the textbox, and select it. So far no problem. But: when the selected piece of text in the...
5
by: marfi95 | last post by:
I'm very confused. I'm trying to automatically select the text when my textbox gets the focus. This is typically when the user has clicked the mouse in the field. This is the code I have in...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
1
by: Developer | last post by:
VC++ 2005 Express Edition: I have a textBox with the properties: this->m_TextBox_Desc->Multiline = true; this->m_TextBox_Desc->WordWrap = true; this->m_TextBox_Desc->ScrollBars =...
2
by: Benny | last post by:
Is there a way to trace exceptions and messages captured with the Enterprise Library to a custom destination like a text box or any other control? If not can anyone think of a way to "hack"...
2
by: robertng90025 | last post by:
I'm having a problem with MS Access 2003 and its conditional formatting. I have textboxes on a continuous form whose left and right margins are set to 0.03 inches. Based on each textbox's...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.