Compartir a través de


HostingForm.ProcessCmdKey Method

Stops the user from closing the form with Alt+F4

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim msg As Message
Dim keyData As Keys
Dim returnValue As Boolean

returnValue = Me.ProcessCmdKey(msg, keyData)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags:=SecurityPermissionFlag.UnmanagedCode)> _
Protected Overrides Function ProcessCmdKey ( _
    ByRef msg As Message, _
    keyData As Keys _
) As Boolean
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] 
protected override bool ProcessCmdKey (
    ref Message msg,
    Keys keyData
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags=SecurityPermissionFlag::UnmanagedCode)] 
protected:
virtual bool ProcessCmdKey (
    Message% msg, 
    Keys keyData
) override
/** @attribute SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode) */ 
protected boolean ProcessCmdKey (
    /** @ref */ Message msg, 
    Keys keyData
)

Parameters

  • msg
    Message
  • keyData
    KeyData

Return Value

Processed?

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

HostingForm Class
HostingForm Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.