Converting code snippet from c# to vb.net

3 posts, 0 answers
  1. Daniel
    Daniel avatar
    7 posts
    Member since:
    Feb 2012

    Posted 05 Sep 2012 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 05 Sep 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    7 posts
    Member since:
    Feb 2012

    Posted 05 Sep 2012 Link to this post

    Hi Stefan,

    yes thank you, it works.


    greetings

    Daniel
Back to Top