vb.net If picturebox.location = picturebox.location

vb.net how can I build this?

If Picturebox1.Location = Picturebox2.Location then
Label1.text = "PAIRED"
End If

Open in new window


Thank you
Rowel VirgoVisual Studio .NETAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
SNAG-0079.bmp
0
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
What do you mean?  
Does that give an error?  If so what error?
0
 
Rowel VirgoVisual Studio .NETAuthor Commented:
No error sir just a sample, because I don't know how to build the code with that condition if the location of picture 1 is equal to location of picture 2 then textbox.text = "Paired"
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Rowel VirgoVisual Studio .NETAuthor Commented:
Thank you I did same code ,

Using a timer tool:
        PictureBox1.Left = PictureBox1.Left + 1
        If PictureBox1.Left = PictureBox2.Left Then
            MsgBox("PAIRED")
        End If

Open in new window

0
 
Rowel VirgoVisual Studio .NETAuthor Commented:
I prefered to use Top and Left properties.
0
 
Rowel VirgoVisual Studio .NETAuthor Commented:
Thank you again.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
The Location property is a variable of type Point which contains both Left and Top properties
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.