Question Locked

keyboard state in vb6

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi everyone...my question is simple...i want to monitor the keyboard state.if any key is pressed i want to show a message..any ideas?
the code is in vb6

4 replies

by tony hopkinson

Not being funny, but a bit more effort might be in order otherwise you aren't passing.

by onbliss

But you still haven't told which keydown event of which object :-) It could be the [b]forms[/b], textbox, dropdownlistbox :-)

BTW, for some reason I feel comfortable with the onKeyUp event for what he is asking - displaying messages.

by tony hopkinson

does respond to repeat.

Maybe a keyboard map and do both and the message could be a graphic with the currently pressed keys highlighted.

Might be a tad ambitious though, for someone with this much to start learning.

A tip for all those new to the game, if you think something should be obvious to do, it is, and probably smack under your nose where you couldn't see it.

It still catches us old folks out, but we know it happens. :D

enum to string in .net for me yesterday.
Smacks forehead moment that was.

ToString(), felt like a right wally.

This discussion is closed to new replies.