Menu.CreateMenuHandle Method ()

 

Creates a new handle to the Menu.

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

[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
    Flags = SecurityPermissionFlag.UnmanagedCode)>]
abstract CreateMenuHandle : unit -> nativeint
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
    Flags = SecurityPermissionFlag.UnmanagedCode)>]
override CreateMenuHandle : unit -> nativeint

Return Value

Type: System.IntPtr

A handle to the menu if the method succeeds; otherwise, null.

SecurityPermission

for operating with unmanaged code. Associated enumeration: UnmanagedCode

.NET Framework
Available since 1.1
Return to top
Show: