P
Prabaharan pichaiyan
Guest
I need to use power point wireless presenter to click my form button. So far I tested presenter keys are working same as like keyboard arrow keys. But if I use the below key binding program its not working.
Public Class Form1
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
'detect up arrow key
If keyData = Keys.Up Then
Me.Button2.PerformClick()
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function
Public Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
MsgBox("Proceed Button Clicked")
End Sub
End Class
Kindly Help with this.
Thanks
Continue reading...
Public Class Form1
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
'detect up arrow key
If keyData = Keys.Up Then
Me.Button2.PerformClick()
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function
Public Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
MsgBox("Proceed Button Clicked")
End Sub
End Class
Kindly Help with this.
Thanks
Continue reading...