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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top