Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Components & Controls
Listviews / Treeviews
Grabbing Special Key Combos
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Paszt, post: 330, member: 56"] To use it, first add it to your project (of course :)). Here's some sample code for the Winkey+D (Start+D): [code]Public WithEvents kh As New KeyboardHook() Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles MyBase.Load 'this causes kh to send only keyups (or downs) for the D key kh.SetKeys("D") End Sub Private Sub kh_KeyUp(ByVal P As PopUpBrowser.KeyboardHook.KBDLLHOOKSTRUCT) _ Handles kh.KeyUp If kh.WinKey Then 'show the replacement desktop End If End Sub Private Sub Form1_Closing(ByVal sender As Object, _ ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing kh.Unhook() End Sub[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Components & Controls
Listviews / Treeviews
Grabbing Special Key Combos
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom