Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Remove/Clear Multiple Resources and Schedules
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Remove/Clear Multiple Resources and Schedules

 Post Reply Post Reply
Author
Message
Rod001 View Drop Down
Newbie
Newbie


Joined: 29 September 2006
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rod001 Quote  Post ReplyReply Direct Link To This Post Topic: Remove/Clear Multiple Resources and Schedules
    Posted: 03 October 2007 at 6:53pm
Hi,
 
I am using VB6 with Calendar Control 11.2.  Does anyone know whether it's possible to clear or remove all the multiple-resources and events from a calendar?

I have a request to add a button that will allow the users to clear the screen.

Any help is very welcome, a sample of code would help even more!
Thank you,
Rod
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2007 at 4:44pm
Hi Rod,

Something like this should help:

Dim pDefRes As New CalendarResource
CalendarControl.MultipleResources.RemoveAll
CalendarControl.MultipleResources.Add pDefRes
CalendarControl.Populate


--
WBR,
Serge

Back to Top
Rod001 View Drop Down
Newbie
Newbie


Joined: 29 September 2006
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rod001 Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2007 at 11:35am
Serge,
 
Thank for you for the help, that worked for me.
 
Great customer service!!
Back to Top
RogerHitz View Drop Down
Newbie
Newbie


Joined: 27 January 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote RogerHitz Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2009 at 12:36pm
Hello,

I tried :

Dim pDefRes As New CalendarResource
CalendarControl.MultipleResources.RemoveAll
CalendarControl.MultipleResources.Add pDefRes
CalendarControl.Populate

But it says it does not have a valid dataprovider.
I would like to use memory type provider.

Thanks

ROGER
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.125 seconds.