Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

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?
0
william007
Asked:
william007
  • 5
  • 4
3 Solutions
 
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
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now