ActiveX Events and their signatures
Hello, the MS documentation has me confused. It says for the LegendSelected Event the syntax is
VB Code:
Private Sub object_LegendSelected (mouseFlags As Integer, cancel As Integer)
So, shouldn't:
VB Code:
Private Sub ReadingChart_LegendSelected(Byval mouseflags As Integer, Byval cancel As Integer) Handles ReadingChart.LegendSelected
work? It's complaining that the event handler signature does not match the LegendSelected method signature.
What am I doing wrong?
Re: ActiveX Events and their signatures
I'm not 100% sure but I think that the arguments are old 16bit Integers and not 32bit Integers. Try declare them as Short.