System.Windows.Forms.Control.OnNotifyMessage Method

Notifies the control of Windows messages.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected virtual void OnNotifyMessage (Message m)

Parameters

m
A System.Windows.Forms.Message that represents the Windows message.

Remarks

The Control.OnNotifyMessage(Message) method is called if the control's EnableNotifyMessage style bit is set in System.Windows.Forms.ControlStyles. The EnableNotifyMessage style in System.Windows.Forms.ControlStyles enables the control to be notified when the Control.WndProc(Message@) method receives a Windows message. With this method, semi-trusted controls can listen for Windows messages without enabling them to modify the message.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0