hi
i add some panels in runtime that every backgroundimage is different
i want when click on the button , i be able get the name of the controls that added to the form
how can i do that?
and i want when i have 2 control and i want draw line between them that i get difference between 2 control and draw a horizantel line on centry point of distance between two control
then draw a vertical short line
again draw a horizontal line to seconds control
please help me
thx
How save name of every control that add in run time and then can use them?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Dec 12, 2009, 12:48 PM EST
we can not distinguish which controls are added at run time . but take one Global variable List
if my answer helps you then check "Do you like this answer" check box please :)
Zaid Dabaeen3 reputationPosted Jan 6, 2010, 3:37 AM EST
control.left + control.width - control2.left
Draw line by using draw.line setting the pen as new pen with pixel 1 black color or whatever you want.