Results 1 to 2 of 2

Thread: ActiveX Events and their signatures

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    2

    ActiveX Events and their signatures

    Hello, the MS documentation has me confused. It says for the LegendSelected Event the syntax is

    VB Code:
    1. Private Sub object_LegendSelected (mouseFlags As Integer, cancel As Integer)

    So, shouldn't:

    VB Code:
    1. 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?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width