-
March 16th, 2004, 11:51 AM
#1
override
In Vb I want to override the F1 key on a forum. How does one do that?
http://www.dewgames.com
Shareware and Free games!
-
March 16th, 2004, 12:00 PM
#2
On a Forum?
Was it on a form?
In any case, follow links and links to links...maybe...
http://www.codeguru.com/forum/showth...hlight=disable
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
March 16th, 2004, 12:07 PM
#3
Yes I meant Forms.... **** I cant speel. And that one I actually knew. Anyway how do I override this F1 key. Please can you help me?
http://www.dewgames.com
Shareware and Free games!
-
March 16th, 2004, 12:13 PM
#4
If it is for the form only
Do not know what exactly you're asking....
Set keypreview of form to true
in keyDown test for Keycode=VbKeyF1
if match...do what you need...
Something happens when you press F1? Does it display
an help you do not want to appear on that form?
ie: stopping an help from appearing:
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 Then
KeyCode = 0
'do what you need
End If
End Sub
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
March 16th, 2004, 01:44 PM
#5
Set keypreview of form to true
Thanks That was why it wasnt working. Excellent!
http://www.dewgames.com
Shareware and Free games!
-
March 16th, 2004, 01:46 PM
#6
You're welcome
Nice to have feedback
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
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
|