Guest User

Escape ( GAME ) Source VB.NET

a guest
Jan 13th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.61 KB | None | 0 0
  1. Public Class Form2
  2.  
  3.     Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  4.         Me.Text = "Escape - Playing: Locked Room"
  5.         DoubleBuffered = True
  6.     End Sub
  7.  
  8.     Private Sub PictureBox2_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox2.Click
  9.         MsgBox("you realized you where on the 4th floor.")
  10.         PictureBox2.Enabled = False
  11.     End Sub
  12.  
  13.     Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox1.Click
  14.         MsgBox("you realized you where on the 4th floor.")
  15.         PictureBox1.Enabled = False
  16.     End Sub
  17.  
  18.     Private Sub PictureBox3_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox3.Click
  19.         MsgBox("you have found scissors!")
  20.         items.DropDownItems.Add("Scissors")
  21.         PictureBox3.Enabled = False
  22.     End Sub
  23.  
  24.     Private Sub PictureBox5_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox5.Click
  25.         MsgBox("you have tied your creation to the chair!, you have escaped!")
  26.         Me.Dispose()
  27.     End Sub
  28.  
  29.     Private Sub BuildToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles BuildToolStripMenuItem.Click
  30.         MsgBox("items built!")
  31.         PictureBox5.Enabled = True
  32.     End Sub
  33.  
  34.     Private Sub PictureBox4_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox4.Click
  35.         MsgBox("you have found curtains!")
  36.         items.DropDownItems.Add("Curtains")
  37.         PictureBox4.Enabled = False
  38.         BuildToolStripMenuItem.Enabled = True
  39.     End Sub
  40. End Class
Advertisement
Add Comment
Please, Sign In to add comment