Menu.FindMenuItem Method
.NET Framework 4
Gets the MenuItem that contains the value specified.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- type
- Type: System.Int32
The type of item to use to find the MenuItem.
- value
- Type: System.IntPtr
The item to use to find the MenuItem.
To search for a MenuItem using a handle, pass in the FindHandle field as the type, and the handle of the MenuItem you want to find as the value.
To search for a MenuItem using a shortcut, pass in the FindShortcut field as the type, and the Shortcut value for the MenuItem you want to find as the value.
-
System.Security.Permissions.UIPermission
for controls to call this method. Associated enumeration: UIPermissionWindow.AllWindows
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.