From: juvi on
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.

"Jeff Hopper" wrote:

> 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.
>
> "juvi" <juvi(a)discussions.microsoft.com> wrote in message
> news:2578B1A4-66B0-493D-8875-6CBB75E76AF3(a)microsoft.com...
> > 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
>