Export (0) Print
Expand All
Expand Minimize

Control.OnNotifyMessage Method

Notifies the control of Windows messages.

[Visual Basic]
Protected Overridable Sub OnNotifyMessage( _
   ByVal m As Message _
)
[C#]
protected virtual void OnNotifyMessage(
 Message m
);
[C++]
protected: virtual void OnNotifyMessage(
 Message m
);
[JScript]
protected function OnNotifyMessage(
   m : Message
);

Parameters

m
A Message that represents the Windows message.

Remarks

The OnNotifyMessage method is called if the control's ControlStyles.EnableNotifyMessage style bit is set. The EnableNotifyMessage style allows the control to be notified when the WndProc method receives a Windows message. This method allows semi-trusted controls to listen for Windows messages without allowing them to modify the message.

Notes to Inheritors:  When overriding OnNotifyMessage in a derived class, calling the base class's OnNotifyMessage method is not necessary because there is no initial implementation.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft