Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Multi User Environment
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multi User Environment

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

Joined: 21 June 2007
Location: United Kingdom
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boris Quote  Post ReplyReply Direct Link To This Post Topic: Multi User Environment
    Posted: 03 July 2007 at 9:12am

I am trying to get your calendar demo to work with multiple users. When two copies of the app are running changes made in one do not appear in the other. To overcome this I added a timer which detects changes in the highest created date and modified date. If these don't match a variable then a routine attempts to capture the changes. I do a CalendarControl.DataProvider.ClearCache
CalendarControl.DataProvider.RetrieveDayEvents Format(rst.Fields(2), "dd/mm/yyyy") and this works fine.

However, although the Datepicker is attached to the calendar new or moved events do not show in the Datepicker.
I tried DatePicker.RedrawControl to no effect. I found that if I did DatePicker.DetachFromCalendar and then DoEvents
DatePicker.AttachToCalendar Me.CalendarControl it worked.

Before I continue coding..Is there a better way?

Boris

Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6

VS 2005-2008-2010-2013
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: 04 July 2007 at 4:15pm
No, this is fine enough. Any other way could just repeat the same operation -- reloading events on re-attaching.

--
WBR,
Serge
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.188 seconds.