The example in the first post works when you run it without modification. If, however, you incorporate it with code that has other layouts (especially with scrollviews), you get unpredictable results. The cause seems to be that the resize sub is not being executed with the required width and height. While testing you can temporarily get around the issue by forcing the resize (see below), however this is not a solution.
Private Sub Page1_Resize(Width As Int, Height As Int)
Firstly thanks so much Erel for this Calendar class for b4i. I updated the colour scheme and other aesthetics and migrated the year picker to a list as was done for the month. If anyone wants or finds this look desirable or wants to enhance further I will post the project archive.