Showing related tags and posts accross the entire site.
-
Goyalmayank, This is because delegates with more than 4 parameters are not supported. To get around this you may want to consider using something like the point structs in the ShapeAppSamples for the StartX/Y and NextX/Y cooridinates. Proxies for Managed Assemblies Delegates ProxyGen.exe generates a...
-
There is a new sample up demonstrating generic event handling in entry point classes. Click here to download EventSample VB v2.1 – Exposing Generic Events in Entry Point Classes Excerpt from EventSample VB v2.1 EventHandlerT in EntryPoint Classes.doc: At this time there is no direct way to expose...
-
Events exposed through VSTA can be easily hooked into by add-ins. Like Visual Studio, VSTA automates hooking into events in both C# and Visual Basic. Unfortunately unhooking the events is not automated, but should be done explicitly prior to the add-in unloading. This may be somewhat confusing to the...
-
To declare custom events to expose to VSTA, you will need to: 1) Create a delegate outside of any class (VSTA does not support nested types). 2) Explicitly declare the event as the delegate type from above (for more information on declaring events in VB see Part I- Declaring non-custom events to expose...
-
To declare non-custom events to expose to VSTA is fairly straight forward in C#. For Visual Basic, the events should* be declared explicitly (for more information on using implicitly declared events, see the workaround ). This is because VB hides implementation for implicitly declared events and creates...