Page 1 of 2

AeroGlass

Posted: Thu Mar 24, 2011 1:49 pm
by MrAlicard
Preview

Image

Source Code:
Code: Select all
Imports System.Runtime.InteropServices

Public Class Form1
    <Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential)> Public Structure MARGINS
  Public LeftWidth As Integer
  Public RightWidth As Integer
  Public TopHeight As Integer
  Public Buttomheight As Integer
    End Structure

    <Runtime.InteropServices.DllImport("dwmapi.dll")> Public Shared Function DwmExtendFrameIntoClientArea(ByVal hWnd As IntPtr, ByRef pMarinset As MARGINS) As Integer
    End Function

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  Try
    Me.BackColor = Color.Black
    Dim margins As MARGINS = New MARGINS
    margins.LeftWidth = -1
    margins.RightWidth = -1
    margins.TopHeight = -1
    margins.Buttomheight = -1
    Dim result As Integer = DwmExtendFrameIntoClientArea(Me.Handle, margins)
  Catch ex As Exception
    MsgBox("Uw besturingsysteem bevat niet de benodigde dll bestanden om het uitvoeren van deze applicatie te kunnen vooltooien.", vbCritical, "Fatale Fout")
    Application.Exit()
  End Try
    End Sub
End Class

Re: AeroGlass

Posted: Thu Mar 24, 2011 1:54 pm
by Vikhedgehog
I Think Most Members Already Know This Code But It's Still Very Good :D

Re: AeroGlass

Posted: Thu Mar 24, 2011 2:03 pm
by MrAksel
COngratulations! You made a tutorial with the code tags! And its a very nice piece of code too

Re: AeroGlass

Posted: Thu Mar 24, 2011 7:10 pm
by Cheatmasterbw
What do you use to record the screen into an animated GIF?

Re: AeroGlass

Posted: Thu Mar 24, 2011 7:30 pm
by MrAlicard
Hypercam and converter program Format Factory.

Re: AeroGlass

Posted: Thu Mar 24, 2011 7:34 pm
by Cheatmasterbw
Thanks! Also, the code works great!

Feel free to look at my aero glass control:
viewtopic.php?f=122&t=4046

Re: AeroGlass

Posted: Tue Apr 05, 2011 7:00 pm
by lil-wayneee
damn thats nice brother :D

Re: AeroGlass

Posted: Tue Apr 05, 2011 7:24 pm
by Vikhedgehog
lil-wayneee wrote:
damn thats nice brother :D
No Swearing Please, Read The Rules viewtopic.php?f=17&t=454
2) No offensive language what so ever, if you use offensive language your post will be deleted and you may receive a warning.

Re: AeroGlass

Posted: Tue Apr 05, 2011 10:23 pm
by Agust1337
Damn isnt a swear

Re: AeroGlass

Posted: Tue Apr 05, 2011 10:38 pm
by Cheatmasterbw
All it means is to be worth nothing, or have no meaning to life. Not a swear, just not polite to say.