Control.PreProcessControlMessage Method (Message)


Preprocesses keyboard or input messages within the message loop before they are dispatched.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)>
Public Function PreProcessControlMessage (
	ByRef msg As Message
) As PreProcessControlState


Type: System.Windows.Forms.Message

A Message that represents the message to process.

Return Value

Type: System.Windows.Forms.PreProcessControlState

One of the PreProcessControlState values, depending on whether PreProcessMessage is true or false and whether IsInputKey or IsInputChar are true or false.

.NET Framework
Available since 2.0
Return to top