private void btnBottom_Click(object sender, EventArgs e) { if (testhWnd != IntPtr.Zero) { User32Utils.SetWindowPos(testhWnd, (int)hWndInsertAfterType.HWND_BOTTOM, 0, 0, 0, 0, 1 | 2); } }
private void btnTopMost_Click(object sender, EventArgs e) { if (testhWnd != IntPtr.Zero) { User32Utils.SetWindowPos(testhWnd, (int)hWndInsertAfterType.HWND_TOPMOST, 0, 0, 0, 0, 1 | 2); } }