10885 : I have placed the horizontal scroll bar on the TimeItemArea and i want to scroll the TimeItemArea from the scroll bar.

…whenever the DateScaler change              TimeSpan ts1=gantt1.DateScaler.UpperBound.Subtract(gantt1.DateScaler.LowerBound);       TimeSpan ts2 = gantt1.DateScaler.StartTime.Subtract(gantt1.DateScaler.LowerBound);       TimeSpan ts3 = gantt1.DateScaler.StopTime.Subtract(gantt1.DateScaler.StartTime);           hScrollBar1.Value = (int)(hScrollBar1.Maximum * ts2.Ticks / ts1.Ticks);       hScrollBar1.LargeChange=(int)(hScrollBar1.Maximum * ts3.Ticks/ts1.Ticks);… Continue reading

10659 : How to rotate something in the background draw…

…        Font font=new Font(FontFamily.GenericMonospace,46,FontStyle.Bold);         Matrix matrix=new Matrix();         matrix.RotateAt(22,new Point(0,0));         G.Transform=matrix;         G.DrawString(“Hey I am 22”,font,new SolidBrush(Color.FromArgb(alpha,255,0,0)),60,-40);         Matrix matrix2=new Matrix();         matrix2.RotateAt(-22,new Point(0,0));         G.Transform=matrix2;         font.Dispose… Continue reading

10517 : GTP.Net Drag and drop

…= “DROP\n” ; GanttRow gr=gantt2.GanttRowFromY(gantt2.TimeItemArea.PointToClient(new Point(0,e.Y)).Y); //GanttRow gr=null; //Cell c=gantt2.Grid.GridStructure.CellFromXY(0,e.Y); //if (c!=null) // gr=GanttRow.FromGridNode(c.Node); if (e.Data.GetDataPresent(typeof(PlexityHide.GTP.TimeItem)) && gr!=null) { TimeItem theOneToMove=e.Data.GetData(typeof(PlexityHide.GTP.TimeItem)) as TimeItem; TimeItem nti=gr.Layers[0].AddNewTimeItem(); nti.Start=theOneToMove.Start; nti.Stop=theOneToMove.Stop; } } }… Continue reading

10860 : How can i set another color for the arrow while linking 2 activities?

Question How can i set another color for the arrow while linking 2 activities (default is black) and also another width ? Answer Set these properties: gantt1.TimeItemLinks.CreationTimeItemLinkWidth and gantt1.TimeItemLinks.CreationTimeItemLinkColor  … Continue reading