how can i remove "always on top" from a program, that i don't want always on top, that doesn't give an option to choose whether it should be or not?
Printable View
how can i remove "always on top" from a program, that i don't want always on top, that doesn't give an option to choose whether it should be or not?
If you have VB6, take this code
1- start new project
2- Add Timer1 to the form
3- Paste the following code
4- Compile with name "not_top_most.exe"vb Code:
Option Explicit Private Const HWND_TOPMOST As Long = -1 Private Const HWND_NOTOPMOST As Long = -2 Private Const SWP_NOSIZE As Long = &H1 Private Const SWP_NOMOVE As Long = &H2 Private Const SWP_NOACTIVATE As Long = &H10 Private Const SWP_SHOWWINDOW As Long = &H40 Private Declare Sub SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) Private Declare Function GetForegroundWindow Lib "user32" () As Long Private Sub Form_Load() Timer1.Interval = 3000 Timer1.Enabled = True End Sub Private Sub Timer1_Timer() Timer1.Enabled = False SetWindowPos GetForegroundWindow(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE Unload Me End Sub
To set any window not top most:
1- Run "not_top_most.exe"
2- Activate the window you want set it not top most, wait about 3 seconds until the "not_top_most.exe" end
perfect, i'll install vb6 (got it on a cd somewhere) then try it.
Don't forget to mark the thread "Resolved" if you have finished with it.
yeah i know, i just found my cd, i'll reply tomorrow, got homework to do.
I searched the web and found this little tool called PowerMenu, give it a try.