Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,789 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,788 people online right now. Registration is fast and FREE... Join Now!




Textboxobject [ScrollBars]

 
Reply to this topicStart new topic

Textboxobject [ScrollBars], Scroll bars

Mercedes
post 8 Oct, 2008 - 02:41 AM
Post #1


New D.I.C Head

*
Joined: 18 Jun, 2008
Posts: 8


My Contributions


HI there...smile.gif

I was hoping someone could help me..trying to use scroll bars..but don't know the code for them..Want them in a textbox object..

I"ve tried :

Textboxobject(1).multiline = True

I would put the code i am working on but its different with the program i use..so it will look odd to most..but it uses VB6..Properties and objects..I know for listboxes they appear automatically, however they don't' for this as far as i can see..smile.gif



Need it for VB 6

Thanks very much..for your time..smile.gif
User is offlineProfile CardPM

Go to the top of the page

Reverand Dave
post 8 Oct, 2008 - 05:54 AM
Post #2


D.I.C Regular

Group Icon
Joined: 27 Jul, 2008
Posts: 373



Thanked 2 times

Dream Kudos: 50
My Contributions


There is a setting in the properties of the textbox to enable both horizontal and vertical scroll bars or you can add

CODE

Text1.Scrollbars = 0 ' for none
Text1.Scrollbars = 1 ' for horizontal
Text1.Scrollbars = 2 ' for vertical
Text1.Scrollbars = 3 ' for both


You can set this in the for initializtion event or set it in a triggered event that shows them when the text extends beyond a specific character count. I hope this is the answer you were looking for.
User is offlineProfile CardPM

Go to the top of the page

thava
post 8 Oct, 2008 - 06:24 PM
Post #3


D.I.C Regular

Group Icon
Joined: 17 Apr, 2007
Posts: 423



Thanked 17 times

Dream Kudos: 50
My Contributions


even though we set the texbox Scrollbars property it is only active when the no of lines Exceed the height of the textbox

This post has been edited by thava: 8 Oct, 2008 - 06:25 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 03:41PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month