Advertisement
kaed

code from image comparison video

Jun 10th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.48 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private ss As Image = My.Resources.spaceship 'create an image and set it = to resources image
  4.  
  5.     Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  6.         PictureBox1.Image = ss 'set the picturebox's image to the image we just made
  7.  
  8.         If PictureBox1.Image Is ss Then 'if the picturebox image is the spaceship then...
  9.             MessageBox.Show("working") 'shows it works!
  10.         End If
  11.     End Sub
  12. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement