Advertisement
idsystems

VBNet_AC06

Sep 24th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.10 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.         Label1.Parent = PictureBox1
  5.         Label2.Parent = PictureBox1
  6.         Label3.Parent = PictureBox1
  7.         Label4.Parent = PictureBox1
  8.  
  9.         Label1.BackColor = Color.Transparent
  10.         Label2.BackColor = Color.Transparent
  11.         Label3.BackColor = Color.Transparent
  12.         Label4.BackColor = Color.Transparent
  13.     End Sub
  14.  
  15.     Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
  16.         lblParte.Text = "Monitor"
  17.  
  18.     End Sub
  19.  
  20.     Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
  21.         lblParte.Text = "CPU"
  22.     End Sub
  23.  
  24.     Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click
  25.         lblParte.Text = "Teclado"
  26.     End Sub
  27.  
  28.     Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label4.Click
  29.         lblParte.Text = "Mouse"
  30.     End Sub
  31. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement