Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 13th, 2007, 07:36 AM
Registered User
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default is it possible to have system level hotkeys in C#


I have a requirement that when I press ctrl + alt +s then an certain event must be triggered . my Application will not have an user interface just an console running on an infinite while loop or an service. I tried registering the hotkys using the hotkey function of windows API using DLL Import and then inheriting the class from system.windows.forms.IMessageFilter to filter the incoming messages but it does not work. the hotkey is registered and but the appropriate key combinations are not caught , The Handle I am passing to the HotKey function is the handle of the dummy window created using the createParams Class. i have also tried overriding wndproc.But this all works only when there is an user interface running could anyone plz help me

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotkeys in macros HaileyJ Access 2 September 10th, 2007 03:13 AM
is it possible to have system level hotkeys in C# stygen .NET Framework 1.x 0 March 12th, 2007 11:58 PM
Insert System date and System Time -Form _TextBox cnkumar74 VB How-To 14 February 14th, 2007 10:52 AM
Excel/VBA and hotkeys Susan Chandler Excel VBA 2 September 9th, 2004 07:24 AM
Toolbar Control and HotKeys Kenny Alligood VB How-To 0 April 21st, 2004 10:20 AM

All times are GMT -4. The time now is 11:27 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.