Implements Different to VB

When I create a call such as...

Implements Class.Events

...in VB 2005 Express Edition VB displays all the methods and procedures (etc) on the same page it is called.

This doesn't seem to happen in VC# 2005 Express Edition (well not that I can see anyway).

My question then is how can I have the same methods and procedures appear in VC#

Thanks,

Ryan


Answer this question

Implements Different to VB

  • vlado2110

    Have you tried to write it like this

    public class MyEnumerableClass : IEnumerable[SHIFT+ALT+F10]

    This makes MyEnumerableClass implement IEnumerable interface and [SHIFT+ALT+F10] means you should press those keys to bring up a menu that will let you implement the interface methods in the class.



  • Debbus

    I am not sure I understand the problem. If it has parameters in VB it should also have it in C#. What you say is returned in C# does not look as the actual eventhandler.

  • Muhammad Haggag

    Hi Andreas!

    I tried it again and this time it worked!

    public void OnInstrumentChange(string InstrumentID)

    Thanks for your help,

    Ryan

  • Hugo M

    Thanks Andreas.

    I noticed with in VB some of the methods that were implemented required variables to be passed into them. eg.

    Public Sub OnInstrumentChange(ByVal InstrumentID As String) Implements VTAPI.IVT_APIEvents.OnInstrumentChange

    How do I know which ones require variables in VC# after doing your above method

    (the same event was returned as this in VC#...
    public event IVT_APIEvents_OnInstrumentChangeEventHandler OnInstrumentChange;)

    Thanks again,

    Ryan

  • Implements Different to VB