BeforeOpenProject,代码有问题,但我测试没有报你这种错。
Dim a As Date = Date.TodayDim b As Date = #12/30/2014#If Date.Today >= b Then e.Cancel = trueEnd If