What I have written is the proper way to setup a game loop that's locked at a certain framerate in realtime. For those who are addicted to Timers, you will not find any here. Timers are slow, sluggish, are not realtime, and get worse with the more you run simutaniously, mainly cause every other timer has to fire off all the code within it before the next one does. A proper game loop should look like this (Note that it's in pseudo code) :
VB Code:
Do While Running = True
DoEvents
Lock_Framerate 60 '60 frames per second
Clear_Window
Update_Game 'Physics, Movement, etc.
Render
Loop
Enjoy the code.