Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force Textbox Scrollbars Visible

Status
Not open for further replies.

Lightning

Technical User
Jun 24, 2000
1,140
AU
Does anyone know of a way to force a textbox on a form to always display the scrollbars?

The default behaviour is that a textbox will only display scrollbars when it is the active control. I need to display a textbox with some Help info for the users while the focus remains with the control the user selected. Since some of the Help comments are longer than the available space for my textbox, I need to show the users that there is more text that they can scroll to.

Any ideas?

Thanks
Lightning
 
Have you tried something like this ?
Me![textbox name].ScrollBars = 2

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PHV, but that only works if the textbox has the focus. I need it to display the scrollbars whether the textbox has the focus or not

Lightning
 
Hello, I do not think you can change the scrollbar default behavior.

I might try using a label to notify a user when there is more available information in the form's OnCurrent property.

if len(txt1)> 50 then me.lblNotify.caption = "Scroll down to see help information."
end if



 
dRahme
Thanks, I had come to that conclusion as well. I worked around the problem by setting the textbox onto a subform and sizing it to fit, then using the subform's scrollbar to display the text. Fiddly, but it works.

Thanks again to you and PHV for your help.
Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top