4 writes to handle
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Menu.cs (3)
84if (handle == IntPtr.Zero) handle = CreateMenuHandle(); 219handle = IntPtr.Zero; 314this.handle = IntPtr.Zero;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
4047menu.handle = IntPtr.Zero;
19 references to handle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\Menu.cs (10)
84if (handle == IntPtr.Zero) handle = CreateMenuHandle(); 86return handle; 216if (handle != IntPtr.Zero) { 217UnsafeNativeMethods.DestroyMenu(new HandleRef(this, handle)); 282while (UnsafeNativeMethods.GetMenuItemCount(new HandleRef(this, handle)) > 0) { 283UnsafeNativeMethods.RemoveMenu(new HandleRef(this, handle), 0, NativeMethods.MF_BYPOSITION); 312if (handle != IntPtr.Zero) { 313UnsafeNativeMethods.DestroyMenu(new HandleRef(this, handle)); 337if (item.handle == value) return item; 629Menu menu = (m.LParam == handle) ? this : FindMenuItemInternal(FindHandle, m.LParam);
winforms\Managed\System\WinForms\MenuItem.cs (8)
267UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(menu, menu.handle), MenuID, false); 270UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(menu, menu.handle), -1, false); 453UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.handle), MenuID, false, info); 480UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.handle), i, true, info); 857UnsafeNativeMethods.InsertMenuItem(new HandleRef(menu, menu.handle), -1, true, info); 1433UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.handle), MenuID, false, info); 1439UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(menu, menu.handle), MenuID, false, info); 1461UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(menu, menu.handle), MenuID, false, info);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
4041if (menu.items[i].handle != IntPtr.Zero) {