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
Loading
Kirtan PatelPosted Dec 12, 2009, 5:48 PM
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 DabaeenPosted Jan 6, 2010, 8:37 AM
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.