I've created a form in which to add an event to open a chm file on press of F1 i've included a code on keydown event of form but it is not getting fired even i've made the keypreviev property true.....
[code=vbnet]
Private Sub frmFacilityDeta ils_KeyDown(ByV al sender As Object, ByVal e As System.Windows. Forms.KeyEventA rgs) Handles MyBase.KeyDown
Try
If e.KeyCode = Keys.F1 Then
Globals.ShowHel pMe(Me)
End If
Catch ex As Exception
MsgBox(ex.Messa ge, MsgBoxStyle.Inf ormation + MsgBoxStyle.OkO nly, Me.Text)
End Try
End Sub
[/code]
[code=vbnet]
Private Sub frmFacilityDeta ils_KeyDown(ByV al sender As Object, ByVal e As System.Windows. Forms.KeyEventA rgs) Handles MyBase.KeyDown
Try
If e.KeyCode = Keys.F1 Then
Globals.ShowHel pMe(Me)
End If
Catch ex As Exception
MsgBox(ex.Messa ge, MsgBoxStyle.Inf ormation + MsgBoxStyle.OkO nly, Me.Text)
End Try
End Sub
[/code]
Comment