Issue in Listview control..

I

Ira Siyal

Hi

I had a project in VB6 which I upgraded to VB.NET recently.

In the app, I am facing some issue with listview control. In the earlier
app, I have set the Icons in listview through an imagelist.

but i notice that while i execute the project in .net, the step that sets
the icon prop. throws an exception.

Please suggest. Do I need to do anything else?

Any help is greatly appreciated.

Regards.









We are migrating our project from Vb6.0 to Vb.Net . We were using the

listview control in VB6 ( Class name - AxListview).

After migration, the system throws an exception while trying to set the

Icons property to the listview. The icons property of the listview control

was set using an imagelist in VB 6, which is not working in .NET.
 
C

Cor

Hi Ira,

Without code it is absolutly impossible to give an answer on your question,
so add some code where you fill your listview.

Cor
 
I

Ira Siyal

Thanks Cor.
I would get back to you in a while.
Please help me here!!!!!!!
Regards.
 
H

Herfried K. Wagner [MVP]

* "Ira Siyal said:
I had a project in VB6 which I upgraded to VB.NET recently.

In the app, I am facing some issue with listview control. In the earlier
app, I have set the Icons in listview through an imagelist.

but i notice that while i execute the project in .net, the step that sets
the icon prop. throws an exception.

Please suggest. Do I need to do anything else?

Why not upgrade to .NET's ListView and ImageList controls?
 
M

Martin Robins

Are you calling Application.EnableVisualStyles() during the startup of your
application? If so, try disabling this first and see if the problem still
exists. I have had this problem in the past; there are still problems with
the implementation of EnableVisualStyles in conjunction with ImageLists that
will hopefully be fixed in Whidbey.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top