.NET Components for Mobility

How to create a simple appointment/calendar entry in VB.NET?

Last post 12-19-2007 3:22 AM by PeterFoot. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-05-2007 3:52 PM

    • Brad_I
    • Top 75 Contributor
    • Joined on 11-27-2007
    • Posts 6

    How to create a simple appointment/calendar entry in VB.NET?

    I give up.  I've tried using the windowsmobile.pocketoutlook to create an appointment, (just a basic "Meeting 8:00" appointment) but am having no luck. 

    Can someone please post a VB.NET code snippet that shows how to do it?

     Thanks!

    Filed under: ,
  • 12-06-2007 11:40 AM In reply to

    Re: How to create a simple appointment/calendar entry in VB.NET?

    Imports InTheHand.WindowsMobile.PocketOutlook

    ...

    Dim a As New Appointment

    a.Subject = "Meeting"

    a.Start = new DateTime(2007,12,6,8,0,0)

    a.Update()

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 12-06-2007 12:15 PM In reply to

    • Brad_I
    • Top 75 Contributor
    • Joined on 11-27-2007
    • Posts 6

    Re: How to create a simple appointment/calendar entry in VB.NET?

    Thanks, I tried that but get a

    Cannot Update a PimItem that has not been Added to a Collection error.

      

  • 12-19-2007 3:22 AM In reply to

    Re: How to create a simple appointment/calendar entry in VB.NET?

    Alternatively:-

    Dim a As Appointment = session.Appointments.Items.AddNew()

    a.Subject = "My New Appointment"

    'etc

    a.Update()

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (4 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.