|
-
Oct 29th, 2009, 02:04 PM
#1
Thread Starter
Lively Member
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?
-
Oct 29th, 2009, 02:07 PM
#2
Re: Still needing help with my project :(
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..
and also anyone have a key map chart for VB so can save it for another project?
Check the Ascii link in my signature...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Oct 31st, 2009, 12:36 AM
#3
Thread Starter
Lively Member
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
-
Oct 31st, 2009, 02:12 AM
#4
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
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
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|