Imports System.Runtime.InteropServices
Public Structure side Public Left As Integer Public Right As Integer Public Top As Integer Public Bottom As Integer End Structure
<Runtime.InteropServices.DllImport("dwmapi.dll")> Public Shared Function DwmExtendFrameIntoClientArea(ByVal hWnd As IntPtr, ByRef pMarinset As side) As Integer End Function
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Me.Opacity.ToString() > 0 Then Me.Opacity = Me.Opacity.ToString() + 0.05 End If End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try Me.BackColor = Color.Black Dim side As side = New side side.Left = -1 side.Right = -1 side.Top = -1 side.Bottom = -1 Dim result As Integer = DwmExtendFrameIntoClientArea(Me.Handle, side) Catch ex As Exception End Try Timer1.Start() End Sub