To get the
upper left point of a control you can use the
Control.Location[
^] property.
Now, when you get those two points out of your controls, you just need to figure out the center or edge of each one (depending on what your calculation is supposed to do) and then do SQRT(X
2 + Y
2) and multiply by the pixel to meter ratio you have.
* If you meant to calculate distance between two geo positions based on Latitude and Longitude, check the following Q&A on How to calculate Distance Between Lat And Long[^]
Cheers,
Edo