SetStartDate Method is throwing an exception
Date:9/9/2008 2:28:25 PM
Product:ActiveGanttVC Gantt Chart / Scheduler Component
Framework:Visual Studio 6.0
User's Development Environment:Microsoft Visual C++ 6.0
Subject:TimeLine's SetStartDate() throws exception

I am trying to adjust the start date of an ActiveGanttVC control by using the timeline's SetStartDate() function. An exception is thrown claiming that I am trying to change a read-only property of the control. However, in the demonstration project, that function can be called successfully.



We are not seing this behaviour here with this code:

    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.StartDate = DateSerial(2008, 10, 22) + TimeSerial(0, 0, 0)
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.Interval = "1h"
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.SmallChange = 3
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.LargeChange = 24
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.Max = 96
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.Value = 0
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.Enabled = True
    ActiveGanttVCCtl1.CurrentViewObject.TimeLine.ScrollBar.Visible = True

Be sure to have at least version of the control.


All trademarks are property of their respective holders, and are only used to directly describe the products and services being provided. Their use in no way indicates any relationship or endorsement between The Source Code Store LLC and the holders of said trademarks.