Set Calendar DayLength as 1

Hi, in the calendar control properties
we can set the daylength

I wish to set the daylength as 1
Monday displays as M
Tuesday displays as T, etc
Is it possible?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Patrick MatthewsCommented:
Hi william007,

I don't think you can.


Yes, do the following on form load.

calendar_object.daylength = 0


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
william007Author Commented:
Hi, ptan,
I have tried your suggestion but the result appeared to be the full length of day.
"Monday" for Monday
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

??? I got that working on my calendar... It is showing S M T W T F S for the header... let me check it out further...
william007Author Commented:
FYI, my MSCAL.OCX(Calendar component) is version 11.0.5510.0
william007Author Commented:
FYI, if I use MSCAL.OCX(Calendar component) version 8.xx, when I test it on Win 2000 and Win XP, the day portion appeared to be a dot, so I change it to Version 11.x
The above code that works for me is on the MSCAL.OCX v8.xx

Also, the day portion appears to be a dot because there isn't enough area to display it. Maybe you should make the calendar bigger. And also to use the default MS SAN SERIF font only.
william007Author Commented:
Thanks, I guess option is available for 8.xx, not 11.xx..
I will look into the versioning issue.
william007Author Commented:
Now, I confirm that is the issue.
Daylength property of 8.xx is displayed differently from 11.xx
And allows to set daylength as 1.
ok. thanks for the info. Anyway, I am starting the now cos I find it even easier to program and access to many of the framework in Try that. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.