-
2 Questions...
1) What is the font used be windows for the form's title bar?
2) What can I use in the form's KeyPress Event to perform an action when i press a function key like F5 for example? I tried numerous things but nothing worked.
Any help on the above would be great :wave:
-
Re: 2 Questions...
1) Trebuchet MS, I think.
2) I'm not sure how to use the KeyPress event for a form (I'm still very much a newbie!), but this works for me, using the KeyDown event:
Set the form property 'KeyPreview' to TRUE.
Code:
Private Sub frm_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyData = Keys.F5 Then
MsgBox("F5 key pressed!")
e.Handled = True
End If
End Sub
Hope this helps.