Still needing help with my project :(
I have no ideal where my old thread went but im still needing help with a project and no of my books i read for VB6 talked about this and I honestly don't feel like reading MSDN :(
Im trying to get a program going that will use the functions to press or enable another key so to speak.
So if I were to press F1 it will press the number 1 key and im talking about the normal 1 key not using the numpad just the number 1 key above the letter keys
Anyone able to make me an example?
and also anyone have a key map chart for VB so can save it for another project?
Re: Still needing help with my project :(
Quote:
So if I were to press F1 it will press the number 1 key and im talking about the normal 1 key not using the numpad just the number 1 key above the letter keys
the only problem that I see that Laptops don't have keys like PC so you might have some problem there..
Quote:
and also anyone have a key map chart for VB so can save it for another project?
Check the Ascii link in my signature...
Re: Still needing help with my project :(
Ohhh Man no help heh, gotta see if i can post this on another forum need help bad with this :(
Re: Still needing help with my project :(
pretty hard to answer, when you give so little information
are you talking about pressing F1 within your own form, or to work whenever F1 is pressed no matter which program has focus?
you also do not say where you want the 1 key to be sent to
if you want it to work in your own form
set the keypreview property to true
this example will send the function key value to textbox
vb Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyF1: Text1.SelText = 1
Case vbKeyF2: Text1.SelText = 2
'etc
End Select
End Sub
Quote:
and also anyone have a key map chart for VB so can save it for another project
http://msdn.microsoft.com/en-us/libr...8VS.60%29.aspx