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 › Fade your program

Red faceFade your program

Posts 1–3 of 3 · Page 1 of 1
guza44_44
guza44_44
Fade your program
Okay this is a tutorial on how to fade your application. (Very simple)

also im going to put this code in a module cus its cleaner that way

1. Make a new application

2. Add a Module and add this code:


Code:
    Public Sub fadein()
        Dim F As Double
        For F = 0.0 To 1.1 Step 0.1
            Form1.Opacity = F
            Form1.Refresh()
            Threading.Thread.Sleep(100)
        Next
    End Sub
    Public Sub fadeout()
        Dim FO As Double
        For FO = 1.1 To 0.0 Step -0.1
            Form1.Opacity = FO
            Form1.Refresh()
            Threading.Thread.Sleep(100)
        Next
    End Sub
3. Add this code to the Forum_Load

Code:
fadein()
4. Add this code to the Forum_Closed

Code:
fadeout()

TaDah! your done! easy right?
__________________________________________________ __________________________________________________ __
you can also dink around with a Trackbar

say you make it maximum of 5

then you just add this code:


Code:
If TrackBar1.Value = 5 Then
            Me.Opacity = 0.5
        End If
        If TrackBar1.Value = 4 Then
            Me.Opacity = 0.6
        End If
        If TrackBar1.Value = 3 Then
            Me.Opacity = 0.7
        End If
        If TrackBar1.Value = 2 Then
            Me.Opacity = 0.8
        End If
        If TrackBar1.Value = 1 Then
            Me.Opacity = 0.9
        End If
        If TrackBar1.Value = 0 Then
            Me.Opacity = 1
        End If
the numbers can be what you want them to be 0 - 1, i wouldnt recommend going below 0.01 or it may not let you click on the application anymore

and so when you scroll left to right it fades in or out depending on which way you move it.

__________________________________________________ __________________________________________________ __

Also you can make just a regular hide button and put this code so if you press it again it comes back:

Code:
        If Me.Opacity = 1 Then
            Me.Opacity = 0.01
        Else
            Me.Opacity = 1
        End If
#1 · edited 16y ago · 16y ago
Lolland
Lolland
Nice tut man. I appreciate it, I was looking on how to do this earlier.
#2 · 16y ago
ac1d_buRn
ac1d_buRn
this is noob but, How do i get the form closing?

did it on startup and it lagged. Dont like it xD
#3 · edited 16y ago · 16y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • [TuT]Preventing your Program from ClosingBy Iamazn in Visual Basic Programming
    4Last post 17y ago
  • [TUT] How to make your program shutdown, restart, or log off user [TUT]By XGelite in Visual Basic Programming
    6Last post 16y ago
  • [INFO] Make your Program automatically run as Administrator in VB08By CoderNever in Visual Basic Programming
    13Last post 16y ago
  • [Tut]Merging .dlls into your programBy Blubb1337 in Visual Basic Programming
    12Last post 15y ago
  • How to make your program minimize into the task bar?By deathninjak0 in Visual Basic Programming
    8Last post 16y ago

Tags for this Thread

#fade#program