Click to See Complete Forum and Search --> : Please Help With ListView Event Declaration Problems


ddockery
June 12th, 2001, 07:30 PM
I'm creating an Access Data Project (ADP) using Access 2000 along with SQL Server 7.0. When I place a ListView control on a form and populate it, every goes well. When I attempt to interface the ItemClick event everythings goes wrong. As soon as I enter the MyListView_ItemClick(ByVal Item As MSComctlLib.ListItem) routine in the form module all events appear to have envocation errors. The error reads: "The Expression On Load You Entered As The Event Property Setting Produced The Following Error: Procedure Declaration Does Not Match Description Of The Event Or Procedure Having The Same Name". I thought simply adding the event routine would be the end of that, but I'm obviously missing something. Move the Mouse, and mouse event errors are declared. Close the form and UnLoad event errors are encountered. Simply referencing the ListView control's ItemClick event routine seems to clobber the form's event handler.