Home > DeveloperSection > Forums > How to get Current position of a control on Win Form
Mark Devid
Mark Devid

Total Post:102

Posted on    December-16-2013 12:25 AM

 C# C# 

 1 Reply(s)
 1045  View(s)
Rate this:
Am trying very hard but not find any method to get the location(x,y) of the control like picturebox on the form.
please help me ...

Pravesh Singh

Total Post:412

Posted on    December-16-2013 12:47 AM

Hi Mark,

you can just use picturebox1.Left as you X and picturebox1.Top as your Y or

you can combine PointToScreen and PointToClient:

Point locationOnForm = control.FindForm().PointToClient(


Don't want to miss updates? Please click the below button!

Follow MindStick