Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / June 2005

Tip: Looking for answers? Try searching our database.

Probs with ListView KeyDown event in ACC97

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steffen Holzinger - 14 Jun 2005 10:55 GMT
Hi together,
I have an Access 97 application with forms displaying TreeViews and
ListViews referenced from the Microsoft Windows Common Control 6.0 (SP6)
MSCOMCTL.OCX.
Everything worked fine until I tried to add an event procedure for a
ListView's Keydown event, using the following declaration:

Private Sub ListView1_KeyDown(KeyCode As Integer, Shift As Integer)

Access stops compiling with the message saying that the declaration of the
event procedure doesn't match the declaration of the event with the same
name.
I have no idea why this happens because
1. the declaration matches the one displayed in object catalog
2. the same code works fine when used in VB6
3. event procedures for the ColumnClick and ItemCheck events of the same
control work without any problems

Has anyone an idea why this strange behavior occurs? Thanks a lot for any
answer.

Steffen
Alex Dybenko - 14 Jun 2005 13:55 GMT
Try to delete this proc and insert again using 2 top combos of module
window, first selection activex control name and then event

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

> Hi together,
> I have an Access 97 application with forms displaying TreeViews and
[quoted text clipped - 18 lines]
>
> Steffen
Steffen Holzinger - 14 Jun 2005 14:33 GMT
Hi Alex,
thank you for your reply. Shame on me for not having tried this rather
simple solution. Second parameter needs a 'ByVal', that's all.
Steffen

> Try to delete this proc and insert again using 2 top combos of module
> window, first selection activex control name and then event
[quoted text clipped - 21 lines]
>>
>> Steffen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.