Menu::FindMenuItem Method (Int32, IntPtr)
.NET Framework (current version)
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
.NET Framework
Available since 1.1
Available since 1.1
Show: