Print Page | Close Window

Remove/Clear Multiple Resources and Schedules

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=8283
Printed Date: 07 October 2024 at 1:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Remove/Clear Multiple Resources and Schedules
Posted By: Rod001
Subject: Remove/Clear Multiple Resources and Schedules
Date 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



Replies:
Posted By: sserge
Date 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



Posted By: Rod001
Date Posted: 09 October 2007 at 11:35am
Serge,
 
Thank for you for the help, that worked for me.
 
Great customer service!!


Posted By: RogerHitz
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net