Small conversion error (C to VB).. Adding event handlers

2 posts, 0 answers
  1. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 04 May 2011 Link to this post

     list.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged);


    list.SelectedIndexChanged += New RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged)

    while it should be

                    AddHandler list.SelectedIndexChanged, AddressOf list_SelectedIndexChanged

    Love the converter. Even have a Windows 7 Gadget for it. I hope it was made by Telerik..
  2. Todd
    Todd avatar
    66 posts

    Posted 12 May 2011 Link to this post

    Hello Nicolai,

    Thanks for the feedback. I'm glad you enjoy the converter and have found the Windows Gadget for it.

    I believe this is a known issue with the NRefactory conversion process. It is not well able to convert between the C# and VB event handler syntax. I suggest sharing this feedback directly with the NRefactory development community. Hopefully support will be added to the engine soon so we can offer an improved conversion experience.


Back to Top