G
Guest
I have the following code and it returns the x and y coordinates in the text
box, but when I click the mouse on say 362,61 does not bring up form2.Any
suggestions?
Thanks,
Jerry
Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick
Dim mouseX As Integer = e.X
Dim mouseY As Integer = e.Y
TextBox1.Text = e.X
TextBox2.Text = e.Y
If TextBox1.Text = 341 > 553 And TextBox2.Text = 22 > 148 Then
Form2.Show()
Me.Hide()
End If
End Sub
box, but when I click the mouse on say 362,61 does not bring up form2.Any
suggestions?
Thanks,
Jerry
Private Sub PictureBox1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick
Dim mouseX As Integer = e.X
Dim mouseY As Integer = e.Y
TextBox1.Text = e.X
TextBox2.Text = e.Y
If TextBox1.Text = 341 > 553 And TextBox2.Text = 22 > 148 Then
Form2.Show()
Me.Hide()
End If
End Sub