This is a migrated thread and some comments may be shown as answers.

Errords In Implemening Appointment Factory

2 Answers 135 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 01 Apr 2010, 06:53 PM
Hi Guys

I am working the example on the following link
http://www.telerik.com/help/winforms/binding_to_custom_fields.html

and when I added the following code

Imports

 

Telerik.WinControls.UI.IAppointmentFactory

 


Public Class CustomAppointmentFactory  
 Implements IAppointmentFactory
 #region IAppointmentFactory Members  
 Public Function CreateNewAppointment() As IEvent  
  Return New AppointmentWithEmail()  
 End Function
#End Region  
End Class  
On my import statement I am getting the following error
Error 1 'IAppointmentFactory' for the Imports 'Telerik.WinControls.UI.IAppointmentFactory' does not refer to a Namespace, Class, Structure, Enum or Module.

The following error message is on the line Implements IAppointmentFactory
Error 2 Class 'CustomAppointmentFactory' must implement 'Function CreateNewAppointment() As IEvent' for interface 'Telerik.WinControls.UI.IAppointmentFactory'.

And thrid error is String constant expected on the line  #region IAppointmentFactory Member

I have referenced the necassary dlls. I am using VS2005.
Thanks
JJ

2 Answers, 1 is accepted

Sort by
0
JJ
Top achievements
Rank 1
answered on 01 Apr 2010, 06:57 PM
I have solved the  thrid error is String constant expected on the line  #region IAppointmentFactory Member
as this   #region "IAppointmentFactory Member"


0
Accepted
Dobry Zranchev
Telerik team
answered on 02 Apr 2010, 02:54 PM
Hello JJ,

Thank you for your feedback. We will update the documentation. You change is correct.

Do not hesitate to contact us if you have additional questions.

All the best,
Dobry Zranchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler and Reminder
Asked by
JJ
Top achievements
Rank 1
Answers by
JJ
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or