Windows Messages Index

Click for Simple Interprocess Communications using WM_COPYDATA

Simple Interprocess Communications using WM_COPYDATA

Whilst the .NET Framework has some very sophisticated techniques for communication between processes on different machines, it doesn't provide so much support for communication between processes on the same machine. The Windows API offers a rich set of inter-process communications features, at various levels of sophistication. This sample demonstrates using one of the simplest techniques, the WM_COPYDATA message. VB.NET and C# code provided.

  more...


Last Updated: 10 November 2003


Click for Adding Mouse Gesture Support to .NET Windows Applications

Adding Mouse Gesture Support to .NET Windows Applications

Use of mouse gestures to control application is becoming increasingly common in the more sophisticated web browsers. This sample demonstrates how you can support a range of mouse gestures in .NET Windows Forms Applications by implementing an IMessageFilter. VB.NET and C# code provided.

  more...


Last Updated: 23 October 2003


Click for Receiving and Using Clipboard Change Notifications

Receiving and Using Clipboard Change Notifications

Clipboard support in the .NET Framework is fairly comprehensive, however, support for notification of clipboard changes is not provided. Knowing when the clipboard changes makes building an application with a toolbar containing a Paste button simpler; it also enables you to store a history of clipboard changes like the VS.NET Clipboard Ring or the Office Clipboard Taskpane (VB.NET and C# versions provided).

  more...


Last Updated: 27 September 2003


Click for Subclassing In .NET

Subclassing In .NET

In VB 5 and 6, subclassing was something of a pain. To do it at all you needed a raft of cunning hacks and had to keep a very careful track on which object was subclassing what. All of that pain is removed in .NET with the System.Windows.Forms.NativeWindow class, which makes it almost trivial to provide an extensible, safe and robust subclass for any window you choose. This article demonstrates how to use it, and provides a pair of classes for detecting some of the events that the framework has missed: activation state changes and low level Sizing and Moving control.

  more...


Last Updated: 9 March 2003


Click for HotKeyForm

HotKeyForm

One of the Windows API features which isn't included in the .NET Framework is setting up and receiving notifications from system-wide HotKeys. This article presents an extended version of System.Windows.Forms.Form which adds HotKey functionality.

  more...


Last Updated: 23 December 2002