Nevron Forum
Home
»
Nevron Open Vision for NET
»
General Discussion
»
Getting keyboard input when a button is clicked
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
General Discussion
»
Getting keyboard input when a button is clicked
Getting keyboard input when a button is clicked
Post Reply
Getting keyboard input when a button is clicked
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Jobelle Firme
Jobelle Firme
posted 5 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 8,
Visits: 65
Hi,
I was wondering if there is a way to get keyeventargs when a button is clicked? To be specific, I wanted to know if the Shift key was pressed when the Delete button was clicked.
I currently have:
AddHandler RibbonButtonDelete.Click, AddressOf ButtonDeleteFile_Click
Private Sub ButtonDeleteFile_Click(ByVal e As NEventArgs)
'code here
End Sub
Thank you.
Tags
buttons
Reply
Like
0
Nevron Support
Nevron Support
posted 5 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.1K
Hi,
You can use the
NKeyboard.ShiftPressed
property to check if the
Shift
key is pressed. For example:
Private Sub Button_Click(ByVal e As NEventArgs)
If (NKeyboard.ShiftPressed) Then
MessageBox.Show("Shift pressed!")
End If
End Sub
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search