In notepad (or other textboxes) when you hold down a keyboard key, it writes the first letter, waits a little and then without a break its writes same letter. I mean you're holding down a key but after first letter its just waiting a little (only for first letter) and moving on. My english is terrible so hope you understand.

My problem is: im trying to write a game in vb.net (for fun :) ) so player pushing the button (for example up arrow) but like in notepad it waits a little. So car moves a little, waits and you know the rest.

How can i fix this problem? Thanks.

Note: i've checked windows messages and messages coming with that little time space, so it wont work with hook or something (i've tried that also). maybe i should read keyboards raw data? if it's the only way how can i do that in vb .net?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.