This question is a follow on from http://bytes.com/topic/net/answers/9...picker-control
I have tried
And this seems to work fine.
But what is totally baffling is, when I open the project the following day,
the above code has disappeared and been replaced with
I have doubted whether I actually saved everything properly so double checked, reverted the code back to
but the following day it has gone again and been replaced by the hard-coded date.
This is in Visual Studio 2008 environment.
Can anybody explain this. Thanks
I have tried
Code:
DateTime dtStart = DateTime.Now; this.dtPickStart.Value = dtStart.AddMonths(-1);
But what is totally baffling is, when I open the project the following day,
the above code has disappeared and been replaced with
Code:
this.dtPickStart.Value = new System.DateTime(2010, 11, 6, 10, 12, 2, 547);
Code:
DateTime dtStart = DateTime.Now; this.dtPickStart.Value = dtStart.AddMonths(-1);
This is in Visual Studio 2008 environment.
Can anybody explain this. Thanks
Comment