VB.NET - 'Title' is not a member of 'Calendar.Appointment'

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-06-09T00:13:07Z Indexed on 2010/06/09 0:22 UTC
Read the original article Hit count: 632

Filed under:
|
|

I am having a problem with my code. I am using VB.NET and Visual Studio 2010 to write my program. The source of the control that I am using can be found here.

First, I imported the Calendar.DayView.dll file into my toolbox to use as a control. Then I added the following code to my existing code:

Private Sub DayView1_NewAppointment(ByVal sender As System.Object, ByVal args As Calendar.NewAppointmentEventArgs)

   Dim appointment As New Calendar.Appointment()

   appointment.StartDate = args.StartDate
   appointment.EndDate = args.EndDate
   appointment.Title = args.Title

   appointments.Add(appointment)

End Sub

I get this error 'Title' is not a member of 'Calendar.Appointment'.

I have no access to the Calendar namespace or the Appointment class. I am able to view the properties of both in the Object Browser but I can't edit any of them.

Any suggestions?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about vb.net