ImageListCtrl in XP

  • Thread starter Thread starter Rudy W.
  • Start date Start date
R

Rudy W.

In a form in a Access databse (Access 97 version) a
ImageListCtrl is used:
OLEObject: ImageListCtrl
Verb: 0
Class: COMCTL.ImageListCtrl.1

After conversion to Access 2002, I get follow error:

Error 2683 There is no object in this control

With which ActiveX control can I replace this 'older'
ImageListCtrl in Access XP to have the same functionality?

Thanks

R.W.
 
Rudy W. said:
In a form in a Access databse (Access 97 version) a
ImageListCtrl is used:
OLEObject: ImageListCtrl
Verb: 0
Class: COMCTL.ImageListCtrl.1

After conversion to Access 2002, I get follow error:

Error 2683 There is no object in this control

With which ActiveX control can I replace this 'older'
ImageListCtrl in Access XP to have the same functionality?

Hi, Rudy.

OLEObject: ImageListCtrl
Class: MSComctlLib.ImageListCtrl.2

That is:

Library MSComctlLib
C:\WINDOWS\system32\MSCOMCTL.OCX
Microsoft Windows Common Controls 6.0
 
Grazie Maurizio,

I deleted and replaced the controls with the current
version of it (from MSCOMCTL.OCX)

But my code manipulating them doesn't work any more:

The two controls are:

Name: FileImage
OLEClass: ImageListCtrl
Verb: 0
Class: MSComctlLib.ImageListCtrl.2

and

Name: TreeView
OLEClass: TreeCtrl
Verb: 0
Class: MSComctlLib.TreeCtrl.2

The original code:

....
Dim objTreeView As Object
Dim objListImage As Object
dim dbCurrent as DAO.Database

On Error GoTo Err_Load


Set objListImage = Me!FileImages
Set objTreeView = Me!Treeview
Set dbCurrent = CurrentDb

' Set TreeView control ImageList property
objTreeView.ImageList = objListImage.Object
objTreeView.Sorted = True

I get this error now:

Error: 35613 ImageList must be initialised before it can
be used

So it seems that the functionalities of the new and the
old versions are not the same.

Ciao,

R.W.
 
Back
Top