Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Replace the Scroll Date Buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Replace the Scroll Date Buttons

 Post Reply Post Reply
Author
Message
g.novi View Drop Down
Groupie
Groupie


Joined: 27 October 2009
Location: Italy
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote g.novi Quote  Post ReplyReply Direct Link To This Post Topic: Replace the Scroll Date Buttons
    Posted: 23 September 2011 at 11:01am
Hi,
I want to replace with my big buttons the Scroll Date Buttons of the Calendar Control.
What code to use to do the same work as Scroll Date Buttons?
Thank's to all.

Gianpiero
Back to Top
g.novi View Drop Down
Groupie
Groupie


Joined: 27 October 2009
Location: Italy
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote g.novi Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2011 at 10:15am
Can anyone help me? Please ... Unhappy
Thank's.
Back to Top
g.novi View Drop Down
Groupie
Groupie


Joined: 27 October 2009
Location: Italy
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote g.novi Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2011 at 3:17am
I enclose a picture.
I hope to be more explicit.


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: 10 October 2011 at 9:51am
Hi,

What exactly are you requiring, is it just the code to move the Calendar back and forward?

If so, the following code should work:

' Back button code, change -1 to 1 for Forward button code
With CalendarControl
    .ActiveView.ShowDay DateAdd("ww", -1, .ActiveView.Days(0).Date), True
    .ViewType = xtpCalendarWorkWeekView
    .Populate
End With

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
g.novi View Drop Down
Groupie
Groupie


Joined: 27 October 2009
Location: Italy
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote g.novi Quote  Post ReplyReply Direct Link To This Post Posted: 10 October 2011 at 10:26am
Hi,
what you say is true, but 
In this way I first examine what is the value of .ViewType property.
I thought there was a precise instruction. Example: Calendar.Forward Smile
Anyway thank you for helping me.
Bye.

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: 10 October 2011 at 10:36am
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.156 seconds.