Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ok, i know e.Graphics.DrawLine(...);

But i want to connect them with an another user control, any idea ?


LINE UC
|UC1| -----> |UC2|
Posted

1 solution

Calculate the size and position of both controls you want to connect, find out which side of the controls should be connected, calculate the position of the centre of that side for each control and draw the line between those 2 points.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900