Transparent form
Posted: Thu Jul 17, 2014 7:36 am
Hello,
seems all know how to make a Transparent Form
yea sure we do but why using the Transparencykey to set your form into
now you can even use a easier way:
what do we need:
A Form
how it works:
important message: Do never ever ever set your form show in taskbar because this code will not work trust me i know ;)
double click on the form
so we get the sub load
hope you like this one
if some of you didn't know about this
NOT MY CODE JUST WANTED TO SHARE WITH YOU ALL ;)
#Birthday
seems all know how to make a Transparent Form
yea sure we do but why using the Transparencykey to set your form into
now you can even use a easier way:
what do we need:
A Form
how it works:
important message: Do never ever ever set your form show in taskbar because this code will not work trust me i know ;)
double click on the form
so we get the sub load
Code: Select all
or you can also use the sub new
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.ShowInTaskbar = False
Me.ShowIcon = False
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 'will be used if this above code does not work
TransparencyKey = BackColor
End Try
End Sub
Code: Select all
have fun Public Sub New()
InitializeComponent()
FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.ShowInTaskbar = False
Me.ShowIcon = False
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 'will be used if this above code does not work
TransparencyKey = BackColor
End Try
End Sub
hope you like this one
if some of you didn't know about this
NOT MY CODE JUST WANTED TO SHARE WITH YOU ALL ;)
#Birthday