Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Getting started with Flowchart.NET 5 (Read 1248 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Getting started with Flowchart.NET 5
Sep 19th, 2007 at 9:44am
Print Post  
Judging from the support questions we have been getting in the last two weeks, it seems it's hard to set up forms to start using FlowChart.NET in the VS designer. Everybody successfully adds both Diagram and DiagramView objects to the form, but many people forget to specify that the Diagram instance is the one that should be displayed in the DiagramView. To do that -

- select the view
- display its properties
- find the view's Diagram property (it's in the Misc category)
- in the Diagram property drop-down list select the diagram you have on the form
- if you do not see that diagram in the list, close the form and open it again

That's all. Now you will be able to successfully set the diagram's properties and events using the designer.

Of course you can set the view's Diagram from code, without adding a diagram to the form, but it's not much fun to add event handlers manually. Most events are defined in in Diagram and not in DiagramView, in order to let you add their handlers just once. Otherwise in MDI interface you would have to connect handlers to their events for each view.

HTH
g.
« Last Edit: Sep 19th, 2007 at 11:08am by Slavcho »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3228
Joined: Oct 19th, 2005
Re: Getting started with Flowchart.NET 5
Reply #1 - Sep 19th, 2007 at 9:50am
Print Post  
In case someone is having trouble adding both Diagram and DiagramView to the toolbox - they are located in two different assemblies.

- mindfusion.diagramming.dll contains the Diagram class, all link and nodes classes except ControlNode, and the layout classes.

- mindfusion.diagramming.winforms.dll contains the DiagramView class, ControlNode, all Behavior classes, and print and print preview related types.

So if using VS.NET 2005 or newer versions, select both assemlies in Windows Explorer and drag them to the VS toolbox to install the Diagram and DiagramView icons. In VS.NET 2003, use the "Customize" command from the toolbox context menu, locate the dll files in the FlowChart.NET folder and select them.

HTH
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint