Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB 6.0 >>> VB.NET / October 2003

Tip: Looking for answers? Try searching our database.

Type 'AxMSComctlLib.AxImageList' is not defined.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Howard Kaikow - 24 Oct 2003 15:13 GMT
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.

Signature

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

Herfried K. Wagner [MVP] - 24 Oct 2003 19:20 GMT
* "Howard Kaikow" <kaikow@standards.com> scripsit:
> 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
[quoted text clipped - 12 lines]
>
> Is there a corrected library for VB  .NET 2002?

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.

Signature

Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet

Howard Kaikow - 24 Oct 2003 23:02 GMT
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.
Signature

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

> * "Howard Kaikow" <kaikow@standards.com> scripsit:
> > The sample code file in the listview directory was  incorrect, at least as
[quoted text clipped - 17 lines]
> replace all the other Microsoft Windows Common Controls with the new
> controls too in order to work with .NET's ImageList.
John Hart [MSFT] - 24 Oct 2003 23:38 GMT
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.

Signature

John Hart, Microsoft VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

> Sender: Standardbenutzer@TU-K3YVE0N56PSA
> Subject: Re: Type 'AxMSComctlLib.AxImageList' is not defined.
> References: <O24nSEjmDHA.372@TK2MSFTNGP11.phx.gbl>
> X-Face:
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
> From: hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
> Date: 24 Oct 2003 20:20:25 +0200
> Lines: 25
> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows))
Hamster/2.0.0.1
> MIME-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
[quoted text clipped - 4 lines]
> Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
> Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.vb.upgrade:5665
> X-Tomcat-NG: microsoft.public.dotnet.languages.vb.upgrade
>
[quoted text clipped - 19 lines]
> replace all the other Microsoft Windows Common Controls with the new
> controls too in order to work with .NET's ImageList.
Howard Kaikow - 25 Oct 2003 06:33 GMT
Thanx.

Signature

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

> I just wanted to add a little more information.
>
[quoted text clipped - 11 lines]
> > References: <O24nSEjmDHA.372@TK2MSFTNGP11.phx.gbl>
> > X-Face:

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
> > From: hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
[quoted text clipped - 38 lines]
> > replace all the other Microsoft Windows Common Controls with the new
> > controls too in order to work with .NET's ImageList.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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.