Support Forums

Full Version: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hello there. Today I am going to be running through how to get your program to look transparent. Tired of seeing this all the time?

[Image: a8996363cf2c8e0d1536543157669f8a.png]

And want to see something new... Something more 2011? Like this?

[Image: wowws.png]

Well since it wasn't posted here, I thought I would share with you guys this super awesome glassy-GUI.

Instructions:
  • Put all of this code into your form.

Code:
Imports System.Runtime.InteropServices
Public Class Form1
    <DllImport("dwmapi.dll")> Public Shared Function DwmExtendFrameIntoClientArea(ByVal hWnd As IntPtr, ByRef pMarinset As MARGINS) As Integer
    End Function
    <StructLayout(LayoutKind.Sequential)> _
    Public Structure MARGINS
        Public Left As Integer
        Public Right As Integer
        Public Top As Integer
        Public Bottom As Integer
    End Structure
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Margins As MARGINS = New MARGINS
        Dim hwnd As IntPtr = Handle
        margins.Left = -1
        margins.Top = -1
        margins.Right = -1
        margins.Bottom = -1
        Dim result As Integer = DwmExtendFrameIntoClientArea(hwnd, margins)
        BackColor = Color.Black
    End Sub
End Class

Recommendations:
Then it starts getting difficult, so you will have to follow along.
The color black = the sexy, transparency we want.
Any other color other than white should not be used.
White will show brilliantly, depending which font you use, Veranda is the best. You will change the ForeColor to white to show. Bolding is not recommended, it will look sloppy and messy. For every object you use, from buttons to progressbars, you would want to set the backcolor to "0" or "Transparent" without quotes. And for the Text, you would want to set it to white in order to show. Remember, no other color than white should be used for your objects or else it will look glitchy. Follow all of the recommendations I have provided and you will be fine. Enjoy, don't forget to say thanks or something at least Thumbsup

Results FTW:
Sexy Glass GUI
[Image: resultsftw.png]


Peace and Comment !! Victoire
Did you really just leech this from HF and post it here?
Wow,this GUI is sick bro, Thanks for posting.
Nice! This is nice GUI bro thanks Smile
(04-01-2011, 07:29 PM)KoBE Wrote: [ -> ]Did you really just leech this from HF and post it here?

No why dude, that's not me... I don't leech.

I had this piece of code on my computer for two years now from a different forum that no longer exists.
Wow,this lookes indeed leeched?
(04-01-2011, 08:55 PM)KoBE Wrote: [ -> ]just curious...

http://hackforums.net/showthread.php?tid=1151788

I didnt know that thread existed! I even explained as to how the hell to use the bockcolor and he doesn't. What the hell Kobe.
Airdity: You douche, you said I was so awesome now your not on my side? Go to hell.
I'm just judging what I see with my own eyes,that user posted a link I visited and reviewed my opinion and changed it.
Is this working on XP , or just on windows 7 ?
Pages: 1 2 3 4