2 Replies - 1668 Views - Last Post: 08 October 2008 - 07:24 PM Rate Topic: -----

#1 Mercedes  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 18-June 08

Textboxobject [ScrollBars]

Posted 08 October 2008 - 03:41 AM

HI there...:)

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..:)



Need it for VB 6

Thanks very much..for your time..:)

Is This A Good Question/Topic? 0
  • +

Replies To: Textboxobject [ScrollBars]

#2 Reverand Dave  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 3
  • View blog
  • Posts: 375
  • Joined: 27-July 08

Re: Textboxobject [ScrollBars]

Posted 08 October 2008 - 06:54 AM

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

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.
Was This Post Helpful? 0
  • +
  • -

#3 thava  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 180
  • View blog
  • Posts: 1,606
  • Joined: 17-April 07

Re: Textboxobject [ScrollBars]

Posted 08 October 2008 - 07:24 PM

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: 08 October 2008 - 07:25 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1