Hi Erel,
I´m sorry, but the code isn´t working proper.
First I have changed the date format into "20.09.2008" (Europe). It works.
If I use your code above, there are some Problems for the User on the Pocket-PC:
1) You wrote: "You can change the time."
But I can change it only in the code, but a User can´t change it on the Pocket-PC.
2) Another problem is, when today (DueDate) is the 09/19/2008 (19.09.2008) and the StartDate is the 09/20/2008 (20.09.2008) = in the future, an error-message is shown:
An Error occurred ... PimCol.AddItem(Task.Value)
Error description:
Native method call failed.
Continue?
There should be a possibility for the user to put in the StartDate and the DueDate, also to set an Alarm. (This would be the best solution)
The "DueDate" function is working correct.
Now I made this:
Task.StartDate = DateParse(""&BeginnDatum.Text&"") + (TimeParse(""&BeginnUhrzeit.Text&"") Mod cTicksPerDay)
... and the "StartDate" function is also working! (the Date- and Time-Fields must be TextBoxes, although it is not working!)
So, only the "Alarm"-function is needed.
Question to case 2) How can I avoid the error-message an show instead a messagebox like that: "Your Due-Date is set before the Start-Date. Please correct that ..."
Thanks in advance!