emi_sastra
asked on
KeyEventArgs for Alt + Number
Private Sub Button_Click(sender As Object, e As EventArgs) Handles _
btnEDCKartuKredit.Click, _
btnEDCKartuDebit.Click, _
btnCancel.Click, _
btnSave.Click
Dim dictionary As New Dictionary(Of CButtonLib.CButton, Short)
dictionary.Add(btnEDCKartu Kredit, ? ) ? Alt+1
dictionary.Add(btnEDCKartu Debit, ? ) ? Alt + 2
dictionary.Add(btnCancel, Keys.Escape)
dictionary.Add(btnSave, Keys.F9)
Dim btn As CButtonLib.CButton = DirectCast(sender, CButtonLib.CButton)
Dim keyEventArgs = New KeyEventArgs(dictionary(bt n))
Check_Keys(btn, keyEventArgs)
End Sub
How to I code for Alt+1 and 2 ?
Thank you.
btnEDCKartuKredit.Click, _
btnEDCKartuDebit.Click, _
btnCancel.Click, _
btnSave.Click
Dim dictionary As New Dictionary(Of CButtonLib.CButton, Short)
dictionary.Add(btnEDCKartu
dictionary.Add(btnEDCKartu
dictionary.Add(btnCancel, Keys.Escape)
dictionary.Add(btnSave, Keys.F9)
Dim btn As CButtonLib.CButton = DirectCast(sender, CButtonLib.CButton)
Dim keyEventArgs = New KeyEventArgs(dictionary(bt
Check_Keys(btn, keyEventArgs)
End Sub
How to I code for Alt+1 and 2 ?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Deepak ,
I have button associated with Keys (F, Alt, Ctrl and Shift).
I have function to check those keys, and I want to reuse that function for button key.
Thank you.
I have button associated with Keys (F, Alt, Ctrl and Shift).
I have function to check those keys, and I want to reuse that function for button key.
Thank you.
ASKER
Hi Giannis,
It works.
Waiting for Deepak solution if any.
Thank you.
It works.
Waiting for Deepak solution if any.
Thank you.
no idea
ASKER
Ok.
Thank you.
Thank you.
ASKER
Hi Giannis,
It works.
Thank you very much for your help.
It works.
Thank you very much for your help.
Glad to help...
Giannis
Giannis
Can you explain the problem properly?
- Deepak Lakkad