Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AutoShapes

Posted on 2006-06-09
3
Medium Priority
?
286 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 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 600 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 1400 total points
ID: 16871165
0
 

Author Comment

by:billcch
ID: 16899074
Thank you!
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

916 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