469,648 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Issue in Listview control..

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.
Nov 20 '05 #1
4 2080
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 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.

Nov 20 '05 #2
Thanks Cor.
I would get back to you in a while.
Please help me here!!!!!!!
Regards.

"Cor" <no*@non.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
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 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.


Nov 20 '05 #3
* "Ira Siyal" <no*@noreply.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
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.
"Ira Siyal" <no*@noreply.com> wrote in message
news:ec*************@TK2MSFTNGP12.phx.gbl...
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.

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Buddy | last post: by
10 posts views Thread by Vinay | last post: by
reply views Thread by Mike Barrett | last post: by
7 posts views Thread by BobAchgill | last post: by
3 posts views Thread by Michael.Suarez | last post: by
12 posts views Thread by garyusenet | last post: by
4 posts views Thread by Brian Gaze | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.