|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionThis component makes it easy to add a Gantt Chart to your application. You just need three lines of code to get it working The Gantt Chart includes these features:
BackgroundI tried to find a good free and easy Gantt Chart to use in my project, but didn't have any luck. Then I decided to make one myself, which actually was easier than I thought it would be Using the codeTo get the Gantt Chart component to show something you only need this: // GanttChart1.FromDate = New Date(2007, 12, 12, 0, 0, 0)
// GanttChart1.ToDate = New Date(2007, 12, 24, 0, 0, 0)
// GanttChart1.AddChartBar("Row 1", Nothing, New Date(2007, 12, 12),
New Date(2007, 12, 16), Color.Aqua, Color.Khaki, 0))
As mentioned above this component also includes a multiline tooltiptext // With GanttChart2
// Dim toolTipText As New List(Of String)
// toolTipText.Add("Time:")
//
// .ToolTipTextTitle = .MouseOverRowText
//
// .ToolTipText = toolTipText
//
// End With
When a tooltiptext-row includes the line is automatically bolded It is also possible to save the Gantt Chart to an image file // GanttChart2.SaveImage("C:\TestImage.jpg")
The included .zip file contains a project showing how to use it's different features HistoryVersion 0.54 The Gantt Chart can now be saved to an image file --- Version 0.53 ScrollBar added to component
|
||||||||||||||||||||||