Solved

AutoShapes

Posted on 2006-06-09
3
280 Views
Last Modified: 2012-08-14
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)

a-----b-----c
|              |
d              e
|              |
f-----g-----h

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.

Thanks
0
Comment
Question by:billcch
3 Comments
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 150 total points
ID: 16870876
I have a not so trivial example in VB.Net:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21361303.html

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#.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 350 total points
ID: 16871165
0
 

Author Comment

by:billcch
ID: 16899074
Thank you!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question