loquin
07-18-2005, 05:47 PM
There's several freely available calendar controls for VB, in addition to the MS Calendar control (which is NOT redistributeable, BTW.)
As an alternative, you can build all the code to display the current calendar purely within VB, with no external controls required.
In the example project I've attached, a single instance of each of the controls required is on the main form; the app creates new instances of the controls and places them on the form to create a calandar for the entire year.
In addition, to create a useful application, I've included an Access 2K database; the app loads a year's worth of comments for the year in question, and visually indicates those dates which have comments. When you select a date, you can then add a comment for the date.
Intially the app was written as a demo app for a PostgreSQL database; some of the variables therefore have PG in their names.
Use the code as you will - it is released to the public domain.
As an alternative, you can build all the code to display the current calendar purely within VB, with no external controls required.
In the example project I've attached, a single instance of each of the controls required is on the main form; the app creates new instances of the controls and places them on the form to create a calandar for the entire year.
In addition, to create a useful application, I've included an Access 2K database; the app loads a year's worth of comments for the year in question, and visually indicates those dates which have comments. When you select a date, you can then add a comment for the date.
Intially the app was written as a demo app for a PostgreSQL database; some of the variables therefore have PG in their names.
Use the code as you will - it is released to the public domain.