Fog Creek Software
Discussion Board




Date format problems with MSCAL.OCX on Windows XP

One of my apps that runs on a fresh XP box (without any Service Pack installed on it) displays the first three characters of day names as in Mon for Monday, Tue for Tuesday and so on in the Microsoft Calender Control (MSCAL.OCX). This is against the format being mentioned in the relevant OCX property to hold only one letter day names (as in M for Monday, T for Tuesday etc.) The same EXE when running on another XP machine without any SP (but with a few hot fixes) displays the first letter of the day names in the control, which is how we want them to appear. The DateFormat property for the OCX is set to ShortDate. It is the same EXE that runs on the two machines with different results.

I was hoping someone would know if it is a Service Pack issue or there is some hotfix associated with MSCAL.OCX on XP.

Sathyaish Chakravarthy
Wednesday, March 31, 2004

Please see pic attached.

http://www.vbforums.com/attachment.php?s=&postid=1660416

Sathyaish Chakravarthy
Wednesday, March 31, 2004

Sorry, I don't know the answer to your question but I'm curious as to what you designed that nice looking application in?

Is that a "skinned" interface or is that a web application?

Curious
Wednesday, March 31, 2004

does the regional settings of both xp are the same?


Wednesday, March 31, 2004

>Are regional settings the same?

Yes.

http://www.vbforums.com/attachment.php?s=&postid=1660478

Sathyaish Chakravarthy
Wednesday, March 31, 2004

Plain VB, with Win32 (bitblt, drawtext wherever I could to minimize memory consumption due to the extravagant usage of memory by the PictureBox control, and other container, windowed controls) to whatever extent possible.

Sathyaish Chakravarthy
Wednesday, March 31, 2004

Different versions of MSCAL.OCX are installed by various versions of Office and Access, as well as various Visual Studio compilers. You may want to check whether the same version of MSCAL.OCX is on both systems. Also, I thought the property that affected this in the calendar control was "Day Length" which you can set to Short, Medium, or Long.

You may also want to consider using the calendar control (MonthView, I think) in the "Microsoft Windows Common Controls-2" (mscomct2.ocx) - it's generally a better calendar control, although it looks significantly different from the MSCAL.OCX calendar control.

Philip Dickerson
Wednesday, March 31, 2004

Sathyaish Chakravarthy,

If this is a VB question, you may have more luck at:

http://peach.ease.lsoft.com/scripts/wa.exe?A0=visbas-l

Seeya

 
Thursday, April 01, 2004

*  Recent Topics

*  Fog Creek Home