Set Calendar DayLength as 1

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

I wish to set the daylength as 1
ie
Monday displays as M
Tuesday displays as T, etc
Is it possible?
LVL 9
william007Asked:
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.

Regards,

Patrick
0
ptan218Commented:
Yes, do the following on form load.

calendar_object.daylength = 0

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.
eg
"Monday" for Monday
0
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.

ptan218Commented:
??? 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...
0
william007Author Commented:
FYI, my MSCAL.OCX(Calendar component) is version 11.0.5510.0
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
0
ptan218Commented:
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.
0
william007Author Commented:
Thanks, I guess option is available for 8.xx, not 11.xx..
I will look into the versioning issue.
0
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.
0
ptan218Commented:
ok. thanks for the info. Anyway, I am starting the vb.net now cos I find it even easier to program and access to many of the framework in vb.net. Try that. :)
0
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.