all groups > vb.net upgrade > october 2003 >
You're in the

vb.net upgrade

group:

Type 'AxMSComctlLib.AxImageList' is not defined.


Type 'AxMSComctlLib.AxImageList' is not defined. Howard Kaikow
10/24/2003 9:13:01 AM
vb.net upgrade:
I have an example for Listview from pages 518-531 of the Visual Basic 6
Black Book by Steven Holzner.
The book was published by Coriolis. As far as I know, they are no longer in
business.
Any pointers to who may have taken over their titles?

The sample code file in the listview directory was incorrect, at least as
far as its display of a combobox control, i.e., it was hidden behind another
control. The correct layout of the Form is displayed on page 518.

Runs in VB 6.

I right clicked on the VBP file to see how it would upgrade to VB .NET 2002.

I got build errors in the forms designer section of the code:

D:\VBNet Code\ListView\BlackBookListview\ListView.NET2002\listview.vb(52):
Type 'AxMSComctlLib.AxImageList' is not defined.

This error occurred for 3 statements in th generated code.

Is there a corrected library for VB .NET 2002?

Upgrading to VB .NET 2003, I do not get those errors, but the code does not
execute correctly.
No error messages, just incorrect execution. I've not yet investigated why.

--
http://www.standards.com/; See Howard Kaikow's web site.


Re: Type 'AxMSComctlLib.AxImageList' is not defined. Howard Kaikow
10/24/2003 6:02:06 PM
Actually, my goal was the following.

In VBA, a listbox has a ColumnCount property that does not exist in VB 6.
I was looking at using a ListView in VB 6 to simulate the multicolumn VBA
listbox, at least for my purposes.
So I decided to see whether the critter would import to VB .NET.

If instead, I have to write original VB .NET code, I believe that Windows
Forms has a Multicolumn property for a list box, so I likely could avoid
listview in VB .NET if I code anew.
--
http://www.standards.com/; See Howard Kaikow's web site.
[quoted text, click to view]

Re: Type 'AxMSComctlLib.AxImageList' is not defined. hirf-spam-me-here NO[at]SPAM gmx.at
10/24/2003 8:20:25 PM
* "Howard Kaikow" <kaikow@standards.com> scripsit:
[quoted text, click to view]

You can use .NET's ImageList class. Notice that you will have to
replace all the other Microsoft Windows Common Controls with the new
controls too in order to work with .NET's ImageList.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
Re: Type 'AxMSComctlLib.AxImageList' is not defined. JohnHart NO[at]SPAM Online.Microsoft.com.
10/24/2003 10:38:26 PM
I just wanted to add a little more information.

The compile error that you received regarding the missing
AxMsComctlib.AxImageList is due to a problem with the Upgrade tool and a
new version of the Microsoft Windows Common controls. I believe if you
chance the code to use the Axmscomctl.AxImageList (notice the removal of
the Lib from the name) it will fix the problem.

Beyond that Herfried also does have a good suggestion to upgrade the use of
the ImageList to the managed version.


--
John Hart, Microsoft VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
[quoted text, click to view]
vJn^g[Lkg9YfJ,Oj#{Y[')WBo<1kS#Rc3Vb!D;jf$;OZ%<"'z+DX"K/m)h\Gi;e-AYsc%'CmL~Ix
@YEq$}A>^]KbF1.Z|=/'*CcB[f+8(m&vP.u4+P.q$n]?[s>nnFu/8EuC?h[c\#wR{ok_um~57to=
P=1"{qO1e%A2~nS?<[o`jn?C/-}7Mbz~L)WI=5VL!*xU#^d
[quoted text, click to view]
Re: Type 'AxMSComctlLib.AxImageList' is not defined. Howard Kaikow
10/25/2003 12:33:47 AM
Thanx.


--
http://www.standards.com/; See Howard Kaikow's web site.
[quoted text, click to view]

AddThis Social Bookmark Button