public static extern bool ShowWindowAsync(IntPtr hWnd, WindowShowStyle nCmdShow);
public static extern bool ShowWindowAsync(IntPtr hWnd, WindowShowStyle cmdShow);
internal static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow);
public static extern int ShowWindow(IntPtr hWnd, WindowShowStyle cmdShow);
public bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow) => ShowWindow(hWnd, nCmdShow);
public static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle showStyle);
public static extern int ShowWindow(int hwnd, WindowShowStyle command);
public static extern int ShowWindow(this IntPtr hwnd, WindowShowStyle nCmdShow);
/// <summary> /// Sets the <see cref="WindowShowStyle"/> for the current process' main window. /// </summary> /// <param name="windowShowStyle">Specifies how the window is to be shown.</param> public static void SetWindowState(WindowShowStyle windowShowStyle) { SetWindowState(Process.GetCurrentProcess().MainWindowHandle, windowShowStyle); }
public static extern bool ShowWindows(IntPtr hwnd, WindowShowStyle nCmdShow);
private static extern bool ShowWindow(IntPtr hwnd, WindowShowStyle nCmdShow);
public static extern void ShellExecuteFromExplorer( [MarshalAs(UnmanagedType.LPWStr)] string file, [MarshalAs(UnmanagedType.LPWStr)] string arguments, [MarshalAs(UnmanagedType.LPWStr)] string directory, [MarshalAs(UnmanagedType.LPWStr)] string verb, WindowShowStyle windowStyle );
/// <summary> /// Sets the <see cref="WindowShowStyle"/> for the window with the specified <paramref name="windowHandle"/>. /// </summary> /// <remarks> /// Do Not give this function the handle of the desktop! /// </remarks> /// <exception cref="ArgumentException">The <paramref name="windowHandle"/> parameter is an invalid pointer.</exception> /// <param name="windowHandle">Handle to the window.</param> /// <param name="windowShowStyle">Specifies how the window is to be shown.</param> public static void SetWindowState(IntPtr windowHandle, WindowShowStyle windowShowStyle) { if (windowHandle == IntPtr.Zero) throw new ArgumentException("The windowHandle parameter is an invalid pointer.", "windowHandle"); ShowWindow(windowHandle, windowShowStyle); }
private static extern bool ShowWindowInternal(IntPtr hWnd, WindowShowStyle nCmdShow);
public static extern int ShowWindow(IntPtr hWnd, WindowShowStyle command);
private static extern bool ShowWindow( IntPtr hWnd, WindowShowStyle style);
public static bool ShowWindow(IntPtr hWnd, WindowShowStyle nCmdShow) { return(ShowWindow(hWnd, nCmdShow)); }
public void ShowWindow(WindowShowStyle flags) { ForciblyControlWindow(() => ShowWindow(WindowHandle, flags)); }