VB.NETアプリケーションで、Functionキー(F1からF12)をキャプチャできるコードサンプルです。
Private Sub frmWinSamAppMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown ‘
— Sample Code for http://DotNetDud.BlogSpot.com
Select Case e.KeyCode
Case Keys.F1
MessageBox.Show("Help is on the way")
Case Keys.F5
RefreshMethod()
Case Keys.F9
MessageBox.Show("You have pressed F9")
End Select
End Sub