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] Windows Vista/7 Glass Window

Smile[Tutorial] Windows Vista/7 Glass Window

Posts 1–15 of 19 · Page 1 of 2
MJLover
MJLover
[Tutorial] Windows Vista/7 Glass Window
NextGenEdit: Original Code By DFXBB's

Hi !

One of the most coolest features of Windows Vista/7 is its glass effect in Forms.

In this short tutorial I'll show you how to make your form entirely transparent. The difference is that by default Windows do transparency in title bar. But we can change that and apply the transparency to complete Form.

Here we go:

Create a new project.

Add this namespace:
Code:
Imports System.Runtime.InteropServices
Then add this:

Code:
'This will declare margins for transparency of our window...
<StructLayout(LayoutKind.Sequential)> _
    Public Structure WinMargins
        Public LWidth As Integer
        Public THeight As Integer
        Public RWidth As Integer
        Public BHeight As Integer
    End Structure
Then declare the following API:
Note: The following API is only present in Windows Vista /7
Code:
<DllImport("dwmapi.dll")> _
    Public Shared Function DwmExtendFrameIntoClientArea(ByVal hWnd As IntPtr, ByRef pMarinset As WinMargins) As Integer
    End Function
Now Double Click The Form and add the following code:
Code:
Dim margins As WinMargins = New WinMargins
'The value of -1 is used when you want to use full window as transparency...
         Dim WM As WinMargins = New WinMargins
        WM.LWidth = -1
        WM.RWidth = -1
        WM.THeight = -1
        WM.BHeight = -1
'The handle of your window..
        Dim handle As IntPtr = Me.Handle
' Finally call the API function by inputing window handle and your window margins ..
        DwmExtendFrameIntoClientArea(handle, WM)
Note: Transparency will not turned on unless you change the Form's back color to Black.


Credits: MSDN for API DwmExtendFrameIntoClientArea Function (Windows)

Here's a screen shot:


Greetz, MJLover
#1 · edited 16y ago · 16y ago
Zoom
Zoom
Awesome.
GOod tutorial
#2 · 16y ago
Spookerzz
Spookerzz
Woah VB can do everything!

Well written tutorial.
#3 · 16y ago
Blubb1337
Blubb1337
thanks for sharing
#4 · 16y ago
tremaster
tremaster
Public Class Form2

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MyNewSub()
End Sub
Sub MyNewSub()
TransparencyKey = BackColor

End Sub
End Class

something like that?
#5 · 16y ago
MJLover
MJLover
You're welcome. If I get time I'll write some more tutorials because Aero API is very rich and offers many other great effects

And yes VB can do anything. All .NET languages are equivalently powerful
#6 · edited 16y ago · 16y ago
tremaster
tremaster
yo mang pm me back
#7 · 16y ago
MJLover
MJLover
Quote Originally Posted by tremaster View Post
Public Class Form2

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MyNewSub()
End Sub
Sub MyNewSub()
TransparencyKey = BackColor

End Sub
End Class

something like that?
No, buddy not like that. I think you didn't followed the tutorial. Plus I doubt that you are not using Vista/7.

Anyways tutorial is easy. Follow it and hopefully you will get the effect
#8 · 16y ago
NextGen1
NextGen1
Looks Great, thanks for sharing.
#9 · 16y ago
tempta43
tempta43
Sorry, im a newb to Visual Basic, and I don't understand most of this tutorial, you don't have to, but can you make this more newb friendly or make a video? Cause' I really wanna know how to do this. If you can't, its all good.
#10 · 16y ago
NextGen1
NextGen1


Thread Reopened, Credit to author added to post 1







#11 · edited 16y ago · 16y ago
why06
why06
While this thread might be repoened lets get a couple things straight:

1. It's is not our responsibility to make sure you credit your sources.

2. It is not right to claim others work as your own, in order to make urself look good.

There is nothing wrong with sharing a tutorial that you found interesting, preferably not from a rival site though, but if you want to link to MSDN, or even share some interesting snippets that is no big deal, but you can not just outright use someone else's work without even attempting to mention them.
#12 · 16y ago
TR
trevor206
wow it looks so cool but i cant get it to work (i think its cause i have XP)
#13 · 16y ago
tempta43
tempta43
I love this so much.
Probably going to use this for everything now.
#14 · 16y ago
TR
trevor206
Quote Originally Posted by tempta43 View Post
I love this so much.
Probably going to use this for everything now.
lol thanks for rubbing it in lol
#15 · 16y ago
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

  • [Tutorial] Windows 7 JumpListsBy MJLover in Visual Basic Programming
    13Last post 16y ago
  • Glass CMD in Vista in Windows 7.By EndRiT in General
    2Last post 17y ago
  • [Tutorial] Fully Themed Windows Vista Controls In Your AppsBy Hassan in Visual Basic Programming
    9Last post 16y ago
  • [Tutorial] Fully Themed Windows Vista Controls In Your AppsBy Hassan in Visual Basic Programming
    7Last post 16y ago
  • [Tutorial]Disabaling emu windows in your runnableBy HolyFate in Gunz General
    14Last post 20y ago

Tags for this Thread

None