-
Number 1...
How can I scroll text across a screen (like a screen saver) without the flicker? I've tried a timer control and a for loop...
Number 2...
What's the best way to add a pause in an application? Not necessarily waiting on anything in particular, just say I want to do something then wait 3 or 4 seconds to do something else...
These are easy enough right??
-
Numer 1
This might help http://www.vb-world.net/controls/tip516.html
Numer 2
Use SleepEx Api call. It will suspend the execution of the program for the desired time while passing the control in between to the operating systgem to do other pending works.
-
I tried that 'LockWindowUpdate' function, but, unless I'm using it wrong, that keeps a text box from being updated at all. I need it to move from the left side of a form to the right side of a form, with an animation-like appearance, but no flicker...
Am I just using the function wrong? Still in the learning stages of programming... Need help... Or a gun...
Thanks anybody.......
-
Try using api calls for moving the control instaed of inbuilt VB functions. You might have too many controls on the form or may be having insufficient RAM in you machine.
-
If it's just text you are trying to move, put it in a label and move it.
just a thought, but you might consider painting the text directly onto the form using a bitblt, and not worry about a control. Bitblt is the fastest way in windows to show anything. This method is guaranteed not to flicker.