Results 1 to 31 of 31

Thread: Windows Vista & 7 Glass Effect

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Talking Windows Vista & 7 Glass Effect

    The glass effect was the reason why i got Microsoft Windows Vista.
    It looks very cool.
    In general Microsoft has a better GUI then Apple Mac OSX 10.6 or 10.7 i lost track.
    But Windows 7 has to be the best OS\GUI in 2009 - 2010.

    With this little code that i have typed up on my typewriter
    your program can look like Windows Explore etc...

    Requirements

    Windows 7 or Vista

    Preview


    Code


    Vb.net Code:
    1. Imports System.Runtime.InteropServices
    2.  
    3. Public Class Form1
    4.     <Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential)> Public Structure Side
    5.         Public Left As Integer
    6.         Public Right As Integer
    7.         Public Top As Integer
    8.         Public Buttom As Integer
    9.     End Structure
    10.  
    11.     <Runtime.InteropServices.DllImport("dwmapi.dll")> Public Shared Function DwmExtendFrameIntoClientArea(ByVal hWnd As IntPtr, ByRef pMarinset As Side) As Integer
    12.     End Function
    13.  
    14.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    15.         Try
    16.             Me.BackColor = Color.Black 'It has to be black
    17.             Dim side As Side = New Side
    18.             side.Left = -1
    19.             side.Right = -1
    20.             side.Top = -1
    21.             side.Buttom = -1
    22.             Dim result As Integer = DwmExtendFrameIntoClientArea(Me.Handle, side)
    23.         Catch ex As Exception
    24.             MessageBox.Show(ex.Message)
    25.  
    26.         End Try
    27.     End Sub
    28. End Class

    Good Luck
    Attached Images Attached Images  
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width