ActiveX event handler signatures, how do they work?

  • Thread starter Thread starter Jeffrey Spoon
  • Start date Start date
J

Jeffrey Spoon

Hello. According to MS the syntax for the LegendActivated event in the
MSChart control is:

Private Sub object_LegendSelected (mouseFlags As Integer, cancel As
Integer)

So, shouldn't:

Private Sub ReadingChart_LegendSelected(ByVal mouseflags As Integer,
ByVal cancel As Integer) Handles ReadingChart.LegendSelected

End Sub

work? VS complains that the signatures don't match. How do you go about
this?

Thanks
 
Jeffrey Spoon said:
Hello. According to MS the syntax for the LegendActivated event in the
MSChart control is:

Private Sub object_LegendSelected (mouseFlags As Integer, cancel As
Integer)

So, shouldn't:

Private Sub ReadingChart_LegendSelected(ByVal mouseflags As Integer,
ByVal cancel As Integer) Handles ReadingChart.LegendSelected

End Sub

work? VS complains that the signatures don't match. How do you go about
this?

Thanks

Oops never mind. Found it in the context menu > go to definition.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top