Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Event for scroll bars on text boxes

0 views
Skip to first unread message

Steve Haack

unread,
Jan 5, 2010, 10:10:01 PM1/5/10
to
Let's say that I have a text box that shows 2 lines of text, and in that text
box i have 10 lines.

The text box is set to show the vertical scroll bar.

Using the timer event of the form, I would like to simulate clicking the
down arrow on the scroll bar so that every few seconds, it scrolls the text
in the text box up 1 line. Then at the end of the cycle, I want it to return
to the top and start over.

Is there an event for clicking the scoll arrows? I didn't see one.

Steve

Gina Whipp

unread,
Jan 5, 2010, 10:26:46 PM1/5/10
to
Steve,

I don't know if this can be done but Why? This suggest you want to make
some sort of marquee with a text box. I personally, would find that
annoying. Why not just let the Users click the scrollbar?

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Steve Haack" <Steve...@discussions.microsoft.com> wrote in message
news:F9F8ABD2-F47B-4D53...@microsoft.com...

Steve Haack

unread,
Jan 6, 2010, 9:26:01 AM1/6/10
to
The Form that I am building will be displayed on a projection screen with a
tournament status. The tournament will be going on for several hours. The
people that need to see the info will not have access to the keyboard/mouse,
and I don't want the organizer to have to sit there the whole time and change
the display.

Steve

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 6, 2010, 10:57:11 AM1/6/10
to
Steve,

Then I am going to suggest a marquee as I have not yet heard of a way to
*force* a scroll bar to scroll.

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Steve Haack" <Steve...@discussions.microsoft.com> wrote in message

news:3059EEF9-30F9-4190...@microsoft.com...

Steve Haack

unread,
Jan 6, 2010, 12:00:02 PM1/6/10
to
Does access have a Marquee feature? Is there a good control I can get for this?

Thanks,
Steve

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 6, 2010, 12:11:13 PM1/6/10
to
Steve,

I would just search on Google...

http://www.google.com/search?hl=en&source=hp&q=Marquee+ms+access&rlz=1R2GGIH_en&aq=f&oq=&aqi=

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Steve Haack" <Steve...@discussions.microsoft.com> wrote in message

news:1D3CF5F9-B5F3-4F19...@microsoft.com...

Marshall Barton

unread,
Jan 6, 2010, 12:15:02 PM1/6/10
to
Steve Haack wrote:
>The Form that I am building will be displayed on a projection screen with a
>tournament status. The tournament will be going on for several hours. The
>people that need to see the info will not have access to the keyboard/mouse,
>and I don't want the organizer to have to sit there the whole time and change
>the display.


>> "Steve Haack" <Steve...@discussions.microsoft.com> wrote


>> > Let's say that I have a text box that shows 2 lines of text, and in that
>> > text
>> > box i have 10 lines.
>> >
>> > The text box is set to show the vertical scroll bar.
>> >
>> > Using the timer event of the form, I would like to simulate clicking the
>> > down arrow on the scroll bar so that every few seconds, it scrolls the
>> > text
>> > in the text box up 1 line. Then at the end of the cycle, I want it to
>> > return to the top and start over.
>> >
>> > Is there an event for clicking the scoll arrows?


No scroll bar options. It would take some API programming
to do that and I, for one, do not want to go there.

OTOH, IF each "line" in the text box is separated from the
next line with a CrLf and te line is guaranteed to fit
within the width of the text box, then you can kind kind of
make it look like a vertical banner by using code along
these lines:

Dim pos As Long
If IsNull(Me.textbox) Then Exit Sub
pos = Instr(Me.textbox, vbCrLf) + 2
Me.textbox = Mid(Me.textbox, pos+1) & Left(Me.textbox, pos)

--
Marsh
MVP [MS Access]

Gina Whipp

unread,
Jan 6, 2010, 12:12:23 PM1/6/10
to
Steve,

This one looks pretty simple to implement...

http://blogs.techrepublic.com.com/msoffice/?p=657

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Steve Haack" <Steve...@discussions.microsoft.com> wrote in message

news:1D3CF5F9-B5F3-4F19...@microsoft.com...

0 new messages