gsb
gsb

Reputation: 1229

TreeView Drawing

Is there a really quick and easy way to draw a TreeView in a GDI Graphics Object (its TreeNode Collection) in a way such as

alt text http://www.tenstep.com.br/br/TenStepPGP/imagens/EAP5.jpg

?

It could be a component do buy or any that is for free.

Thanks

Upvotes: 0

Views: 416

Answers (1)

Rom
Rom

Reputation: 4199

There are be several ways to go about this:

  • Write it yourself (it's rather easy to do if you know the type of diagrams you're dealing with and customization is not important)
  • Automate one of the well-known applications which do that (Visio or Omnigraffle come to mind). In fact, when I had to programmatically generate manipulate diagrams like that, I ended up writing .NET code inside Visio.
  • Look through open-source UML tools to see if there is code you can use. A good list of such tools can be found on Wikipedia. Please pay attention to the license of the code you end up using.

Upvotes: 1

Related Questions