Binarysharp.MemoryManagement.Windows.WindowCore.ShowWindow C# (CSharp) Method

ShowWindow() public static method

Sets the specified window's show state.
public static ShowWindow ( IntPtr windowHandle, WindowStates state ) : bool
windowHandle System.IntPtr A handle to the window.
state WindowStates Controls how the window is to be shown.
return bool
        public static bool ShowWindow(IntPtr windowHandle, WindowStates state)
        {
            // Check if the handle is valid
            HandleManipulator.ValidateAsArgument(windowHandle, "windowHandle");

            // Change the state of the window
            return NativeMethods.ShowWindow(windowHandle, state);
        }