the code is here: code
i would paste some but that would take up a lot of room because I don't know where the error is occuring. and i would put a breakpoint where i think the error is but i truly have no clue, but my best guess is its something to do with the FPS limiting,next best guess is directinput if i did something wrong there. thanks and if you are wondering, yes i am a complete nub at vb.net
in fact, this is like my second .net program and my first d3d program ever.