Events in .NET Between VB and C#
Posted on 2011-09-08
I have a codebase that has mixed VB.NET and C#: it is slowly being rewritten into purely C#, but for now it has to be mixed. Unfortunately, this has left me with a situation where a C# library that has events needs to communicate those events to a form application written in C#.
I have plenty of programming experience, both with VB.net and C#, but I haven't really gotten into the intricacies of events, especially between the two languages. I've managed to wire-up events strictly in VB, and the same with C# (once or twice each)... but not across the two.
I'm looking for examples. The basics are:
* Form application in VB, displays "what's going on" to the user
* C# library, firing events that indicate what's going on
* need the VB app to handle the C# events
I don't know if this is possible. Pointers are welcome, but please don't waste time focusing on the mixed environment unless doing so will result in real progress.