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

Converting code snippet from c# to vb.net

2 Answers 92 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 05 Sep 2012, 11:39 AM
Hi,

can anyone convert this code to vb.net, please?

radscheduler1.AppointmentEditDialogShowing += new EventHandler<Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs>(radscheduler1_AppointmentEditDialogShowing);


The Telerik converter generates this, but it doesn't work.

radscheduler1.AppointmentEditDialogShowing += New EventHandler(Of Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs)(radscheduler1_AppointmentEditDialogShowing)



Thanks + greeting

Daniel

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Sep 2012, 12:26 PM
Hi Daniel,

Thank you for writing.

This is a known limitation of the converter. Here is the code that you need:
AddHandler Radscheduler1.AppointmentEditDialogShowing, AddressOf radscheduler1_AppointmentEditDialogShowing

I hope this helps.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Daniel
Top achievements
Rank 1
answered on 05 Sep 2012, 01:14 PM
Hi Stefan,

yes thank you, it works.


greetings

Daniel
Tags
Scheduler and Reminder
Asked by
Daniel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or