-
Apr 8th, 2012, 08:13 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] always on top
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?
-
Apr 8th, 2012, 10:15 AM
#2
Re: always on top
If you have VB6, take this code
1- start new project
2- Add Timer1 to the form
3- Paste the following code
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
4- Compile with name "not_top_most.exe"
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
Last edited by 4x2y; Apr 8th, 2012 at 10:21 AM.
-
Apr 8th, 2012, 10:58 AM
#3
Thread Starter
Fanatic Member
Re: always on top
perfect, i'll install vb6 (got it on a cd somewhere) then try it.
-
Apr 8th, 2012, 07:49 PM
#4
Re: always on top
Don't forget to mark the thread "Resolved" if you have finished with it.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Apr 9th, 2012, 12:39 PM
#5
Thread Starter
Fanatic Member
Re: always on top
yeah i know, i just found my cd, i'll reply tomorrow, got homework to do.
-
Apr 9th, 2012, 02:13 PM
#6
Re: always on top
I searched the web and found this little tool called PowerMenu, give it a try.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|