Could anyone provide me some infomation regarding how to design the following task...

I am try to design a rectangle linking system (something like Word "AutoShapes" or Visio)

+----+       +----+
|      |---->|      |
+----+       +----+

1. Create multiple Rectangle control (may be buttons, images...) in a panel, each rectangle has 8 linking points (show as below)

|              |
d              e
|              |

2. User can drag any rectangle to anywhere in the panel

3. There are few arrow lines link rectangles

4. User can draw new lines or change existed lines between rectangles by using mouse, during user drawing a line, if the cursor is closing any rectangle (let's say 15 pixels), the program should connect the line to the nearest linking point automatically.

Who is Participating?
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
I have a not so trivial example in VB.Net:

Converting it will be a pain because I use WithEvents extensively (to turn on/off event trapping without using a series of AddHandler/RemoveHandler calls) and there is no equivalent for it in C#.
billcchAuthor Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.