jhylands

Making the background invisible

Jan 3rd, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.33 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         Dim bmp As Bitmap = Bitmap.FromFile("C:\Users\james\Desktop\1.bmp")
  5.         bmp.MakeTransparent(Color.White) ' white in bitmap will be transparent
  6.         PictureBox1.Image = bmp
  7.     End Sub
  8. End Class
Advertisement
Add Comment
Please, Sign In to add comment