Questions tagged [setwindowpos]

16 questions
-2
votes
1 answer

SetWindowPos not doing anything despite providing all parameters

I have imported SetWindowPos and GetForegroundWindow: [DllImport("user32.dll", CharSet = CharSet.Ansi)] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll", CharSet = CharSet.Ansi)] static extern bool SetWindowPos(IntPtr…
JonnyLee
  • 65
  • 7
1
2