c# Programming Glossary: swp_nosize
How to send a WPF window to the back? http://stackoverflow.com/questions/1181336/how-to-send-a-wpf-window-to-the-back int X int Y int cx int cy uint uFlags const UInt32 SWP_NOSIZE 0x0001 const UInt32 SWP_NOMOVE 0x0002 static readonly IntPtr.. window .Handle SetWindowPos hWnd HWND_BOTTOM 0 0 0 0 SWP_NOSIZE SWP_NOMOVE Source http www.aeroxp.org board lofiversion index.php..
C# make a window topmost using a window handle http://stackoverflow.com/questions/1528473/c-sharp-make-a-window-topmost-using-a-window-handle readonly IntPtr HWND_TOPMOST new IntPtr 1 const UInt32 SWP_NOSIZE 0x0001 const UInt32 SWP_NOMOVE 0x0002 const UInt32 SWP_SHOWWINDOW..
Setting position of a Console Window opened in a WinForms App http://stackoverflow.com/questions/1548838/setting-position-of-a-console-window-opened-in-a-winforms-app namespace ConsoleApplication10 class Program const int SWP_NOSIZE 0x0001 DllImport kernel32.dll ExactSpelling true private static.. 300 int ypos 300 SetWindowPos MyConsole 0 xpos ypos 0 0 SWP_NOSIZE Console.WriteLine any text Console.Read This code set the position.. WindowsFormsApplication10 static class Program const int SWP_NOSIZE 0x0001 System.Runtime.InteropServices.DllImport kernel32.dll..
Setting a Windows form to be bottommost http://stackoverflow.com/questions/2027536/setting-a-windows-form-to-be-bottommost readonly IntPtr HWND_BOTTOM new IntPtr 1 const UInt32 SWP_NOSIZE 0x0001 const UInt32 SWP_NOMOVE 0x0002 const UInt32 SWP_NOACTIVATE.. call SetWindowPos Handle HWND_BOTTOM 0 0 0 0 SWP_NOMOVE SWP_NOSIZE SWP_NOACTIVATE As you commented this moves the form to the bottom..
Bring a window to the front in WPF http://stackoverflow.com/questions/257587/bring-a-window-to-the-front-in-wpf .Handle IntPtr.Zero 0 0 0 0 SWP_NOMOVE SWP_NOSIZE SetForegroundWindow new WindowInteropHelper Application.Current.MainWindow..
|