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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance 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
AndyAinscowFreelance programmer / ConsultantCommented:
SNAG-0079.bmp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.