IntPtr hWnd = WindowHelper.FindWindow(null, "Sticky Pad"); WindowHelper.SetWindowPos(hWnd, WindowHelper.HWND_TOPMOST, 0, 0, 0, 0, WindowHelper.SWP_NOMOVE | WindowHelper.SWP_NOSIZE | WindowHelper.SWP_SHOWWINDOW); WindowHelper.SetWindowPos(hWnd, WindowHelper.HWND_NO_TOPMOST, 0, 0, 0, 0, WindowHelper.SWP_NOMOVE | WindowHelper.SWP_NOSIZE | WindowHelper.SWP_SHOWWINDOW); public static class WindowHelper { [DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); public static readonly IntPtr HWND_TOPMOST = new IntPtr(-1); public static readonly IntPtr HWND_NO_TOPMOST = new IntPtr(-2); public const UInt32 SWP_NOSIZE = 0x0001; public const UInt32 SWP_NOMOVE = 0x0002; public const UInt32 SWP_SHOWWINDOW = 0x0040; [DllImport("user32.dll")] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); }