How to create a curve line between two controls depends on distance?

Hi all, I want to create one curve line between the two controls. I don't know how to do. please give me some hint for this case and point to me the internet resources for that case. Regards,

Loader.
Up arrow icon