Calling All VB Gurus - What's the way to Delay?

novon

Diamond Member
Oct 9, 1999
3,711
0
0
NEVER MIND What's the best way to count the number of lines in a text file in VB?
(got it to work)

New Question -

I'm trying to capture the value of a scroll bar and use that to speed up or slow down how fast something prints to a picture box.

What's the best way to do this?

Here is what I have so far and it overflows or goes too fast:



Dim delayVar As Integer
Dim d as Integer

delayVar = scrSpeed.Value

for d = 1 to (delayVar * 10)
next d



Thanks
 

Deeko

Lifer
Jun 16, 2000
30,213
12
81
lol I'm stupid....I thought you were talking about Volleyball at first :)
 

novon

Diamond Member
Oct 9, 1999
3,711
0
0
Do While EOF(1) = False
lineCount = lineCount + 1
Loop

this caused an overflow