Simple Calendar

Started by John Z, February 21, 2025, 10:11:35 PM

Previous topic - Next topic

John Z

So who wants to fire up Google, Outlook, or other gigantic program just to look at a calendar?   
Not me.  So attached here is a simple calendar with a 6 months view, too simple really, but useful.

A bit more useful since one can also find the number of days from a start day to an end day,inclusive.
Also it can be used to show the resulting date once given a start date and +/- a number of days.
Lastly, it can also set a simple alert for a date & time.  This is a one shot alert, no repeat function.

Simple, but hopefully useful.

John Z

Updated program per Marco's input - revised program and replaced the original one here.

Vortex

Hi John,

Thanks, your application works fine on Windows 7.
Code it... That's all...

John Z

Thanks very much Vortex.

Appreciate the testing feedback.

John Z

Marco

Hi John,

Very nice application and works well on Windows 10/11. One small suggestion. If you click the "+/-" button without first clicking the "Save as Start" button, the end date is wrong. I can think of two possible solutions: 1- Warn the user to click the "Save as Start" button first, or 2- Automatically select the current date as the start date.
However, this is just a suggestion. The application can be really useful in various circumstances. Thanks.

John Z

Hi Marco,

Thanks very much for catching that.  I appreciate you testing it and providing feedback.
Oversight on my part - just didn't think of it :(

Modified the program to make the +/- only active after using 'Save as Start' similar to the Schedule and Days buttons.  Makes sense.

Updated help file as well.

Thanks again, new version replaced the old in the initial post.

John Z

TimoVJL

#5
MS Calendar component (DATETIMEPICK_CLASS) is good for many purboses.

For example, when user needs easy way to select date for program to select data from some periods.
The periods doesn't mean women periods  ;)
May the source be with you

John Z

Yup, and it is also very good to use to get consistent date-time inputs for any program that will be used internationally.  Relieves somewhat the issues of locale specific date formats, which can vary the sequencing of months and days (years are easy). 

John Z