Support Forums
[TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] (/showthread.php?tid=17580)

Pages: 1 2 3 4


[TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Resistance - 04-01-2011

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


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - KoBE - 04-01-2011

Did you really just leech this from HF and post it here?


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Aridity - 04-01-2011

Wow,this GUI is sick bro, Thanks for posting.


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Bullet Proof - 04-01-2011

Nice! This is nice GUI bro thanks Smile


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Resistance - 04-01-2011

(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.


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - KoBE - 04-01-2011

just curious...

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


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Aridity - 04-01-2011

Wow,this lookes indeed leeched?


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Resistance - 04-01-2011

(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.


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - Aridity - 04-01-2011

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.


RE: [TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl] - h4yr0 - 04-02-2011

Is this working on XP , or just on windows 7 ?