Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. How to add item from application to local mobile calendar

How to add item from application to local mobile calendar

Scheduled Pinned Locked Moved Mobile
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chloe_hhi
    wrote on last edited by
    #1

    I am now developing a mobile application using Mobile Client Software Factory. Currently what i need to do is, I have a screen where it have a choice of events, I will the button where it will add the event from the system to the calendar that build in with mobile application and this will be the reminder. Can i know whether this can be done? Thanks.

    C 1 Reply Last reply
    0
    • C chloe_hhi

      I am now developing a mobile application using Mobile Client Software Factory. Currently what i need to do is, I have a screen where it have a choice of events, I will the button where it will add the event from the system to the calendar that build in with mobile application and this will be the reminder. Can i know whether this can be done? Thanks.

      C Offline
      C Offline
      Christopher Fairbairn
      wrote on last edited by
      #2

      Have a look at the following article on developer.com - http://www.developer.com/ws/pc/article.php/10947_3556186_1[^]. It contains step by step instructions on how to add the required references etc in order to use the Microsoft.WindowsMobile.PocketOutlook assembly. You can also find a very good example here which does exactly what you want - http://rareedge.com/gmobilesync/2006/12/08/add-appointments-to-pocketoutlook/[^]. I have reposted the code example here for you: using System; using Microsoft.WindowsMobile.PocketOutlook; public class PocketOulookSample { public void AddAppointment() { Appointment appointment = new Appointment(); using (OutlookSession outlook = new OutlookSession()) { appointment.Subject = “Bake a cake”; appointment.Start = DateTime.Now.AddDays(1); appointment.AllDayEvent = true; appointment.Body = “Nicole loves cake!”; appointment.Location = “Kitchen”; appointment.Sensitivity = Sensitivity.Personal; outlook.Appointments.Items.Add(appointment); } } } Hope it helps, Christopher Fairbairn

      C 1 Reply Last reply
      0
      • C Christopher Fairbairn

        Have a look at the following article on developer.com - http://www.developer.com/ws/pc/article.php/10947_3556186_1[^]. It contains step by step instructions on how to add the required references etc in order to use the Microsoft.WindowsMobile.PocketOutlook assembly. You can also find a very good example here which does exactly what you want - http://rareedge.com/gmobilesync/2006/12/08/add-appointments-to-pocketoutlook/[^]. I have reposted the code example here for you: using System; using Microsoft.WindowsMobile.PocketOutlook; public class PocketOulookSample { public void AddAppointment() { Appointment appointment = new Appointment(); using (OutlookSession outlook = new OutlookSession()) { appointment.Subject = “Bake a cake”; appointment.Start = DateTime.Now.AddDays(1); appointment.AllDayEvent = true; appointment.Body = “Nicole loves cake!”; appointment.Location = “Kitchen”; appointment.Sensitivity = Sensitivity.Personal; outlook.Appointments.Items.Add(appointment); } } } Hope it helps, Christopher Fairbairn

        C Offline
        C Offline
        chloe_hhi
        wrote on last edited by
        #3

        Thanks. It really helps. I think i type in the wrong keyword, no wonder I cant find the solution. Thanks so much.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups