If you use the functions GetForegroundWindow and SetForegroundWindow in the User32.dlllocated in C:\WINDOWS\system32, the Front Panel is set in front of all desktop windows. The GetForegroundWindow function returns a handle to the foreground window (the window with which the user is currently working). The SetForegroundWindow function puts the thread that created the specified window into the foreground and activates the window.The attached example moves the front panel to the front of all desktop windows after 5 seconds.
GetForegroundWindow functionSetForegroundWindow function
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.