Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuToRiAl] Glass Transparency Graphical User Interface (Awesome) [TuToRiAl]
#1
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
[Image: t5BWm.png]
Reply
#2
Did you really just leech this from HF and post it here?
Reply
#3
Wow,this GUI is sick bro, Thanks for posting.
Reply
#4
Nice! This is nice GUI bro thanks Smile
Reply
#5
(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.
[Image: t5BWm.png]
Reply
#6
just curious...

http://hackforums.net/showthread.php?tid=1151788
Reply
#7
Wow,this lookes indeed leeched?
Reply
#8
(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.
[Image: t5BWm.png]
Reply
#9
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.
Reply
#10
Is this working on XP , or just on windows 7 ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT]Creating Advanced Web Browser with Awesome Theme Imaking31 0 1,320 05-25-2013, 03:12 AM
Last Post: Imaking31
  [HELP]Tutorial/Learning System[HELP] norBATman 2 1,095 09-08-2012, 10:17 PM
Last Post: AceInfinity
  [TuToRiAl] How to make Offline (No Internet) Captcha (Human Confirmation) [TuToRiAl] Resistance 24 11,008 08-30-2012, 10:14 PM
Last Post: Resistance
  [Visual Basic] FTP Uploader [Tutorial] Coding Support 6 2,769 08-12-2012, 12:36 AM
Last Post: Kenneth
  [RELEASE]SF-TutPad "Tutorial Editor" [RELEASE] Digital-Punk 28 8,915 08-11-2012, 11:25 PM
Last Post: Kenneth

Forum Jump:


Users browsing this thread: 2 Guest(s)