PDA

Click to See Complete Forum and Search --> : scroll bars


skiddles
Nov 15th, 2000, 08:32 AM
I am currently taking a college course in Visual Basics.
We are working on a project that includes arrays and scroll bars. I have programmed all that I need...but I am having problems with the clear cmd and scroll bars.

I have a text box that goes up when I move the scroll bar, however, when I hit clear, the text box empties, but the scroll bar doesn't return back to the left. How do I code this? I put is in my clear command code..but keep getting a type mismatch.

Can anyone help me? I need this today...

Thanks ...skiddles

jian2587
Jan 4th, 2001, 05:18 AM
EASY AS A PIECE OF A BURNED CAKE!
You mean you want the textbox clears but the scrollbar remains where it is?
Do this dude!

Private Sub Command1_Click()
TV=Len(TextBox1.Text)
TextBox1.Text =""
TextBox1.Text=SPACE$(TV)
rem I think this might works Tell me if it work coz I am not
rem understood what you're asking