Draw Shape at Runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gyanendar
    New Member
    • Jun 2007
    • 90

    Draw Shape at Runtime

    Hi ,
    I have requirement to display some objects(represe nted by some shape) in hierarchical manner connected by line(both Solid & Dotted ).
    E.g. Say We have University class ,College Class,Departmen t Class,Professor Class(prof can be associated with more than one department).
    Requirement is to show them as ..

    University_____ College1 ----Dept----ProfA
    | | |
    | |_____ProfB
    |
    |______Dept1

    My Application is window based(.NET 3.5)

    Please suggest me,how to proceed .

    Regards,
    Gyanendar
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Well - you could start by picking a programming language. Personally I like C#.

    You seem to be describing a TreeView. Will a standard TreeView work for your needs?

    If not, you could make a custom class that draws in a fancy manner. Since a TreeNode can take an object into it's .Tag property I would think you could use that to your advantage. Use a TreeView to keep track of your hierarchy (doesn't mean you have to show it, just use it for tracking). Then use the object in a given node's Tag to do the custom drawing.

    Comment

    Working...