Never mind, got it.
vb.net Code:
Class Form1 Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load Dim testButton As New Button testButton.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(0) tesButtont.FlatAppearance.BorderSize = 0 testButton.FlatAppearance.MouseDownBackColor = Color.Transparent testButton.FlatAppearance.MouseOverBackColor = Color.Transparent testButton.FlatStyle = FlatStyle.Flat testButton.BackColor = Color.Transparent testButton.AutoSize = False Me.imgBackground = New Bitmap("../../Doodley.bmp") imgBackground.MakeTransparent() testButton.Size = imgBackground.Size testButton.BackgroundImage = imgBackground testButton.Location = New Point(50, 100) AddHandler test.Click, AddressOf testButton_Click Me.Controls.Add(test) End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) MessageBox.Show("Button1 was clicked!") End Sub End Class




Reply With Quote