Is it possible to hilight the current date on a gantt chart by placing a vertical bar there? It seems like that would be a common feature, but I can't seem to find a way to reliably do it. Thanks
You didn't mention wich version of net advantage you're using. Vol 3 can apply to 2007 vol 3, 2006 vol 3, or 2005 vol 3, all of which can be used with VS2005. For 2007 vol 3, to use the above code you need to include Ingfragistics.UltraChart.Core and Infragistics.UltraChart.Core.Primitives namespaces.
For the earler versions, you have to use a custoim layer.You can find the list of using statements and an example on creating a custom layer here:http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Writing_a_Layer_Class.html
which assemblies must be included in the source file? VS2005, Vol 3 CLR2, C#.
using ___?
This can only be done by using a custom layer or by handling FillSceneGraph event (if you use version 7.3)
void chart_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e){ IAdvanceAxis xAxis = (IAdvanceAxis)e.Grid["X"]; IAdvanceAxis yAxis = (IAdvanceAxis)e.Grid["Y"]; int x = Convert.ToInt32(xAxis.Map(DateTime.Now)); int y1 = Convert.ToInt32(yAxis.MapMinimum); int y2 = Convert.ToInt32(yAxis.MapMaximum); Line l = new Line(); l.p1 = new Point(x, y1); l.p2 = new Point(x, y2); l.PE.Fill = Color.Red; l.PE.StrokeWidth = 3;
e.SceneGraph.Add(l);}