These don't convert correctly for...

Suggest code to make event handlers work (VB.Net -> C#)

The converter could suggest the code needed to bind an event handler.

Example:

Private Sub SomeObject_SomeEvent(Arguments as Object) Handles SomeObject.SomeEvent

The following code could be suggested (in a comment):
SomeObject.SomeEvent += SomeObject_SomeEvent;

16 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    UFOUFO shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • Pablo(UY)Pablo(UY) commented  ·   ·  Flag as inappropriate

        Also when converting from C#->VB.net
        Suggest in a comment, that
        SomeObject.Someth += SomeObject_Someth,
        could be
        Addhandler SomeObject.Someth, AddressOff SomeObject_Someth
        the same thing for removehandler

      Knowledge Base and Helpdesk