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] fade in/out effect

Thumbs up[Tutorial] fade in/out effect

Posts 1–5 of 5 · Page 1 of 1
K4GE
K4GE
[Tutorial] fade in/out effect
Hi, and welcome to my first tiny Visual Basic.Net tutorial.
In this tutorial i will show you how to let a form fade in and out.

First off all, you need to open Microsoft Visual Basic 2008 Express Edition and start a new Windows Form Application.

Now that you have made your form,
you will need to place a button. (for the fade out effect)
After you are done, your form should look like this:

Now double click your form and you should get this:

Now you have to put
Code:
        Dim fadeinout As Double
        For fadeinout = 0 To 1.01 Step 0.01
            Me.Opacity = fadeinout
              Next
between

Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
End Class
so you should get this:

Now press the 'Debug Button' to see the fade in effect:

and now your Form1 should fade in when you start it.

Now lets do the fade out effect with the button.(This can also be done for closing the form, but ill stick with the button for now)

You should have the folowing code atm:
Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim fadeinout As Double
        For fadeinout = 0 To 1.01 Step 0.01
            Me.Opacity = fadeinout
        Next
    End Sub
End Class
Now double click your Button1 and this should appear
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub
End Class
Put
Code:
        Dim fadeout As Double
        For fadeout = 1 To 0 Step -0.001
            Me.Opacity = fadeout
        Next
Between:
Code:
 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub
End Class
And now you should have:
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim fadeout As Double
        For fadeout = 1 To 0 Step -0.001
            Me.Opacity = fadeout
        Next
    End Sub
End Class
Now press the debug button again.

And now your form will fade in and out!
I hope this tutorial helped you.
#1 · 17y ago
u1111u
u1111u
nothinck happens
#2 · 17y ago
LU
Lukas59
u only can´t see the button and the form 1 but nothing otheer happenz
#3 · 17y ago
AL
almog6666
Ammm it works BUT
When u click On the button.
The project gone
then
u cant close it
so its unusefull
Dident Helped Sorry
#4 · 17y ago
alghamdi29
alghamdi29
it worked for me

that is a cool tut u got there
#5 · 17y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial]Enabling the blood effectBy Andyklk2009 in Combat Arms Hacks & Cheats
    23Last post 18y ago
  • Fade In/Out EffectBy creationsbrodcast in Visual Basic Programming
    26Last post 16y ago
  • [Tutorial]{UI Realated} How to have a fade in effect when a App ClosesBy hopefordope in Visual Basic Programming
    4Last post 16y ago
  • In-Depth Tutorial (*Blacked out Weapons*)By gudsoldier in Combat Arms Hacks & Cheats
    85Last post 17y ago
  • Render Pop-Out TutorialBy Bull3t in Tutorials
    15Last post 20y ago

Tags for this Thread

#noob#tutorial#vb2008#visual basic.net