G
Guest
I'm working on a hex editor as a practice project to teach myself VB.NET. So
far it has been going well, but I ran into something that I'm not sure how to
deal with. I want to let a user type characters into the ascii panel to
change the values, but I'm not sure how to capture their key events in a way
that makes it relatively easy to handle all the possible values that they
could type. How do I create a key-handling procedure that can deal with all
the upper and lower case possibilities, control-key sequences, special
characters, etc., without handling each one individually? I really don't want
to have to write a case statement to deal with each keycode or set of
keycodes, but it's looking more and more like that's what I'll have to do.
There's got to be an easier way. Something I just apparently don't know
about. Anyone have any idea how I should do this?
Thanks!
far it has been going well, but I ran into something that I'm not sure how to
deal with. I want to let a user type characters into the ascii panel to
change the values, but I'm not sure how to capture their key events in a way
that makes it relatively easy to handle all the possible values that they
could type. How do I create a key-handling procedure that can deal with all
the upper and lower case possibilities, control-key sequences, special
characters, etc., without handling each one individually? I really don't want
to have to write a case statement to deal with each keycode or set of
keycodes, but it's looking more and more like that's what I'll have to do.
There's got to be an easier way. Something I just apparently don't know
about. Anyone have any idea how I should do this?
Thanks!