Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Tutorial] Make Window Always On top

[Tutorial] Make Window Always On top

Posts 1–4 of 4 · Page 1 of 1
blipi
blipi
[Tutorial] Make Window Always On top
As the tittle says i will explain how to make the window allways on top.

Put that in a module
Declare Function 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) As Long
Now in ur Form declarations
Private Const HWND_BOTTOM = 1
Private Const HWND_NOTOPMOST = -2
Private Const HWND_TOP = 0
Private Const HWND_TOPMOST = -1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1

Private Declare Function 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) As Long
Now Put that 2 functions:
Public Sub MakeWindowAlwaysTop(hWnd As Long)
SetWindowPos hWnd, HWND_TOPMOST, 0, 0, 0, 0, _
SWP_NOMOVE + SWP_NOSIZE
Form1.Visible = True
End Sub

Public Sub MakeWindowNotTop(hWnd As Long)
SetWindowPos hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, _
SWP_NOMOVE + SWP_NOSIZE
Form1.Visible = False
End Sub
And finally if u want to make it on top/or not:
MakeWindowAlwaysTop (hWnd) 'TO MAKE IT ON TOP
MakeWindowNotTop (hWnd) 'NOT ON TOP
Or with HOTKEYS:
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyQ) <> 0 Then 'OR UR KEY
MakeWindowAlwaysTop (hWnd)
form1.visible=true
ElseIf GetAsyncKeyState(vbKeyW) <> 0 Then 'OR UR KEY
MakeWindowNotTop (hWnd)
Form1.visible=false
End If
End Sub
#1 · edited 18y ago · 18y ago
icuigorz
icuigorz
can you make a hot key for it?
for example

press Insert to bring the hack to the front
press delete to minimize it.
#2 · 18y ago
blipi
blipi
Quote Originally Posted by icuigorz View Post
can you make a hot key for it?
for example

press Insert to bring the hack to the front
press delete to minimize it.
EDIT: NOW IT IS DONE; ON BOTTOM OF THE TUT.
#3 · edited 18y ago · 18y ago
SATANICAT
SATANICAT
I've been looking for something like this!
#4 · 18y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] How to make a form always on top.By wr194t in Visual Basic Programming
    6Last post 18y ago
  • Video tutorial: Making WarRock hack in Visual BasicBy Darky in Visual Basic Programming
    5Last post 17y ago
  • [Video tutorial] Make your own css cheatsBy seren1ty in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    6Last post 19y ago
  • [Tutorial]Make your first hack in Visual Basic 6 (and a begin in CE) (for noobs)By diamondo25 in Programming Tutorials
    28Last post 17y ago
  • [Tutorial] Make a Splash ScreenBy Kung Fu Penguin31 in Visual Basic Programming
    4Last post 18y ago

Tags for this Thread

None