Link to home
Start Free TrialLog in
Avatar of dkinjal
dkinjal

asked on

For VB.NET or Visual prog. Experts PLZ... little tricky matter...

GoodNoon all...
      I am developing a project that will facilate for UML class diagram designing.. in VB.NET...
Now the biggest problem (according to my perspective) i am facing is... "HOW TO CONNECT CLASS DIAGRAMS????" I mean, i need to support the Inheritance, Aggredation etc... and for that i need to enable user to drag-drop a connector on the class diagrams... (much like MS Visio, Smart Draw, or Rational Rose does..)
Now what i want to know for you great minds is...:
1> Best method to do it...
--------------------------
I mean, should i develope
    [ 1 ] ActiveX (or Win control): If YES then, at least one problem i can right now is.. I want the line controls (connector control) selected when user clicks on it... AND if i will develope a control then the control will be selected whenever the use clicks on any of the pixel in that rectangle.... (i hope i have expressed this porblem clearly.. if not then plz tell).. I mean, i want it to selected if and only if the user clicks precicely on the LINE...
    [ 2 ] Is there any better way for doing this..>??? All Suggestions will be ggreatly appereciated..


2> Any Web Reference or Human Reference that would help me...
3> Your Ideas or suggesting
      - On this problem, and
      - On this project..

Sorry! i am not having enough points that must be given to detail answer the the question... but i am putting on stake, all most all i have... I really need help..!

Thanking for your time,
-Kinjal
Avatar of KeithWatson
KeithWatson

Hi Kinjal,

If it were me, I wouldn't develop all this from the ground up; use of a third party control would save you a lot of effort. I used this excellent control as part of a project five years ago and it has since then been ported to a .NET component. It does cost money, but I suspect the saving in development time will more than compensate. I think it may be just what you need.

It allows you do just what you want, create shapes on a canvas, drag and drop them, create connectors between them, it even supports automatic layout of graphs (of the nodes and vertices type). This control, and the support from the author was excellent five years ago; without doubt, the control has many more features now. You can download an evaluation version for free.

http://www.lassalle.com/

Hope that is of help.
Avatar of dkinjal

ASKER

hey Keith,
Thanks a lot.. but i can't take that way out... i am doing my masters and i need to develope the components.. i can't buy them... well, i hope the site will be of some use to me... anyway thanks for answering.. but i need the the other way out....
Avatar of Mike Tomlinson
Hi dkinjal,

I have some code that can give you a good idea of how to develop dynamic rectangles onscreen that can be resized and moved at runtime using the mouse to drag where you want the rectangle to be.

But because this is a school project I didn't want to simply post the code since you are supposed to develop it yourself.

What progress have you made so far?

~IM
Avatar of dkinjal

ASKER

hi idle mind,
it dont seem that your mind is idle one...well thanks for answering..
Initially i was going for .net's run time design support.. but now i resolved the things in other little different way.. now i am not using (and so not bound with problems of) the design classes...
For connecting two class diagrams, i am thinking of a control that will draw a straight line from one class diagram to another..  and to show selection, in the control i will check for mouse coordinates in click event, that the coordinates lies on the drawn lines of not... if yes then i will simply thicken the line to show that the control is active control.... in coming 2-3 day i am going to code it.. i think it will work smoothly this way...
Hey, can u tell me how can i request to remove the question?? it was posted b4 a long and even i got no fruitfull answers... and my 210 points are struct in this question.. i need to invest the points in couple of other questions..
anyway, thanks for answering...
-Kinjal
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By the way, if you still want to close this question, then post a request here:
https://www.experts-exchange.com/Community_Support/

Don't forget to post a link back to this question:
https://www.experts-exchange.com/questions/21136038/For-VB-NET-or-Visual-prog-Experts-PLZ-little-tricky-matter.html

~IM
Avatar of dkinjal

ASKER

Till now, i have developed a few controls, the Method A... but now for showing connection (ie, inheritance and association) i was really thinking for method B...

seeing your efforts... there is now for me other than accepting your answer..
Thanks..
-Kinjal