Getting NullReference Exception when calling CalendarNextAppointme

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I want to get the next calendar appointment's subject.
Microsoft.WindowsMobile.Status and Microsoft.WindowsMobile.PocketOutlook are
referenced but when I use this I get null reference exception:

Appointment N_App = SystemState.CalendarNextAppointment;
MessageBox.Show(N_App.Subject);

thx for any help
 
Not sure if this is the problem, but it's easy to check... Make sure you've
added project references to both Microsoft.WindowsMobile.Status and
Microsoft.WindowsMobile. The reference to the Microsoft.WindowsMobile
assembly is required because some of the types in the
Microsoft.WindowsMobile.Status assembly refer to types in the
Microsoft.WindowsMobile assembly.

Jeff Hopper
Hopper Consulting, Inc.
 
Now I found the "strange" problem with the CalendarNextAppointment. It has
only a value when the NextAppointment is today....if it is in the next days
then it has no value.
 
Back
Top