Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Reminders in VB (Read 2729 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Reminders in VB
Feb 1st, 2007 at 10:35am
Print Post  
can you please show me how to use the ItemReminderTriggered in vb.net Have had a play but can get it going...... Its late @ night and I am having brain fade!
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Reminders in VB
Reply #1 - Feb 1st, 2007 at 1:17pm
Print Post  
You have to create a new reminder and associate it with an item. Then, when the reminder's time comes this event is fired. The following example attaches a leading reminder to an existing item. The reminder will be triggered (i.e. the event will be fired) 5 minutes before the item's actual start time:

Code
Select All
Dim r As New MindFusion.Scheduling.Reminder

r.Type = MindFusion.Scheduling.ReminderType.Leading
r.TimeInterval = TimeSpan.FromMinutes(5)

item.Reminder = r 



Also, make sure that Schedule.DisableReminders is set to false (it is set to false by default). Reminders are checked regularly every 30 seconds by default. You can modify this interval through the Schedule.RemindersCheckInterval property.

I hope this helps.

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Reminders in VB
Reply #2 - Feb 1st, 2007 at 6:30pm
Print Post  
Sorry that part I get its this part I need in vb

calendar.Schedule.ItemreminderTriggered +=
  new MindFusion.Scheduling.ItemEventHandler(OnItemreminder);

// ...

private void OnItemreminder(object sender, MindFusion.Scheduling.ItemEventArgs e)
{
  MessageBox.Show(e.Item.reminder.Message);
}

  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Reminders in VB
Reply #3 - Feb 1st, 2007 at 7:07pm
Print Post  
Hi,

Use the VB.NET AddHandler method -

AddHandler calendar.Schedule.ItemReminderTriggered, AddressOf OnItemReminder

Stoyan
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Reminders in VB
Reply #4 - Feb 1st, 2007 at 8:12pm
Print Post  
Cheers, Grin Grin My BAD!!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint