How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

Visual Studio 2013

Visual Studio 2013

Visual Studio 2013 is now available. Make sure to upgrade to the latest version of Visual Studio. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

How to register a global hotkey for your application in C#

If you are looking for a way to set a global hotkey for your C# application that can be used without your form having focus I have created a decently commentated example for you below that you can use.

    10 Responses to How to register a global hotkey for your application in C#

    1. Welker says:

      Very nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed browsing your blog posts.
      After all I’ll be subscribing to your rss feed and I hope you write again soon!

    2. Trista says:

      Hello! I want to say that this article is amazing, great written and come with almost all important infos. I’d like to see extra posts like this .

    3. Lenora says:

      I’m not that much of a internet reader to be honest but your sites really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. Cheers

    4. Katrina says:

      I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Excellent work!

    5. Walter says:

      I’ve been surfing online more than 2 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the web will be a lot more useful than ever before.

    6. Willian says:

      Good day I am so happy I found your web site, I really found you by accident, while I was searching on Yahoo for something else, Nonetheless I am here now and would just like to say kudos for a marvelous post and a all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome jo.

    7. Ronnie J. says:

      Hello would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most. Can you suggest a good hosting provider at a fair price? Thank you, I appreciate it!

    8. Athena says:

      Hey there! I just wish to give you a huge thumbs up for the excellent information you have right here on this post. I am returning to your blog for more soon.

    9. joe black says:

      Nice post, I use a different method to check the hotkey if you register multiple.
      In your above code I would check the hotkey ID when the message is received like this:

    10. cosmickinect says:

      Had to personally thank you for this article, it saved me soo much trouble :) thanks!

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    CAPTCHA Image

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">