Placing vertical scroll bar on textboxes

  • Thread starter Thread starter roy goldhammer
  • Start date Start date
R

roy goldhammer

Hello there

One of the options of textbox is vertical scoll bar that opens if the number
of lines is bigger the textbox size.

This option opens only when the textbox is on focus.

Is there a way to show always the vertival scroll bar when the amount of
text is bigger then textbox size? even if the textbox is not on focus?
 
roy goldhammer said:
Hello there

One of the options of textbox is vertical scoll bar that opens if the
number of lines is bigger the textbox size.

This option opens only when the textbox is on focus.

Is there a way to show always the vertival scroll bar when the amount
of text is bigger then textbox size? even if the textbox is not on
focus?

Not with the properties of an Access text box. You could possibly use
an ActiveX control instead, or fake a scroll bar somehow by drawing it
yourself when the control doesn't have the focus, and then hiding your
user-drawn scroll bar when the control gets the focus. But I think
that's far more trouble than it's worth.
 
Thankes dirk

You have given me two options.

Do you know if the rich text box control of VB can provide me the vertical
scroll bar always?

or if i want to build my own scroll bar how can i move what write on the
text box or know if the amount of data is bigger then the text box?

any help would be useful
 
Dirk I actually had a look at this issue yesterday. Along the lines of
your suggestion, I tried to use a ListBox control sized so that only its
ScrollBar is visible. Unfortunately the ScrollBar portion of the ListBox
control does not generate any events by itself which renders this method
useless.

There is sample code on my site showing how to use the MS ScrollBar
ActiveX control. If Roy is not widely distributing his app then perhaps
this is the easiest route for him.

The standard behaviour of RTF contro is not to show the vertical
ScrollBar unless it is required but it does stay visible when the RTF
control loses the focus. There is a free RTF control on my site here:
http://www.lebans.com/richtext.htm
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top