Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - [SOLVED] FirstVisibleDay in Week- or Monthview
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] FirstVisibleDay in Week- or Monthview

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] FirstVisibleDay in Week- or Monthview
    Posted: 18 July 2011 at 4:10am
How can I get the FirstVidibleDay and the LastVisibleDay in WeekView or MonthView?
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2011 at 5:23am
Hi,

Don't know if you've resolved this or not but here's some code that does what you require...

    Dim DaysCount As Long
        DaysCount = CalendarControl.ActiveView.DaysCount - 1

    Select Case CalendarControl.ViewType
        Case xtpCalendarDayView
            Debug.Print "First Day: " & CalendarControl.ActiveView.Days(0).Date & ""
        Case xtpCalendarFullWeekView, xtpCalendarMonthView, xtpCalendarWeekView, xtpCalendarWorkWeekView
            Debug.Print "First Day: " & CalendarControl.ActiveView.Days(0).Date & ", Last Day: " & CalendarControl.ActiveView.Days(DaysCount).Date
    End Select

Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2011 at 3:55am
Thanks, that works verry fine!
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2011 at 7:00am
Cool, glad I could help.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.