Public Event click(nombre As String)
Public Event departamento(nombre As String)
Private m_nombre As String
Private Sub Picture1_Click()
RaiseEvent click(m_nombre)
End Sub
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case Picture1.Point(X, Y)
Case 13434726: Label1.Caption = "loreto"
Case 52479: Label1.Caption = "amazonas"
Case 16501163: Label1.Caption = "cajamarca"
Case 13959067: Label1.Caption = "tumbes"
Case 8650495: Label1.Caption = "piura"
Case 10066431: Label1.Caption = "lambayeque"
Case 16711935: Label1.Caption = "la libertad"
Case 16499965: Label1.Caption = "ancash"
Case 16776960: Label1.Caption = "lima"
Case 10527743: Label1.Caption = "ica"
Case 16173747: Label1.Caption = "arequipa"
Case 7995135: Label1.Caption = "moquegua"
Case 10132980: Label1.Caption = "tacna"
Case 16764159: Label1.Caption = "puno"
Case 16711833: Label1.Caption = "cusco"
Case 16766719: Label1.Caption = "apurimac"
Case 255: Label1.Caption = "ayacucho"
Case 5233149: Label1.Caption = "huancavelica"
Case 10027161: Label1.Caption = "junin"
Case 10149515: Label1.Caption = "pasco"
Case 6414335: Label1.Caption = "huanuco"
Case 10659583: Label1.Caption = "san martin"
Case 16236196: Label1.Caption = "ucayali"
Case 5427449: Label1.Caption = "madre de dios"
Case Else
Label1.Caption = ""
End Select
If (Label1.Caption = "") Then
Label1.Visible = False
Else
Label1.Visible = True
Label1.Left = X + Label1.Height
Label1.Top = Y
RaiseEvent departamento(Label1.Caption)
m_nombre = Label1.Caption
End If
End Sub