Click here to Skip to main content
13,195,146 members (69,682 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

582.5K views
49.1K downloads
152 bookmarked
Posted 30 May 2007

A Simple C# Global Low Level Keyboard Hook

, 30 May 2007
A simple description and sample of creating a global low level keyboard hook in C#
key preview
key preview
bin
Release
key preview sample.zip
key preview.exe
key preview.pdb
key preview.vshost.exe
Properties
key preview.suo
key preview.exe
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace key_preview {
	static class Program {
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() {
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new Form1());
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

StormySpike
Software Developer
United States United States
I currently work as a Software Engineer for a company in North Carolina, mainly working with C#.

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171019.1 | Last Updated 30 May 2007
Article Copyright 2007 by StormySpike
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid