473,395 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2216
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Welie | last post by:
Hi all- I am using a listview (MSComctlLib.ListViewCtrl.2)on an Access form. Actually there are six listviews on the form. I need to do the same thing to all six forms so I have the loop below....
1
by: Buddy | last post by:
Hello, Does anyone know how I can tell the ListView NOT to display the three dots when it thinks the text will not fit in the column. E.g. 'Hello World' will be displayed as 'Hello...' if the...
2
by: Ken | last post by:
Hi all, Please help! I'm attempting to apply tooltips to each individual item in VB.Net's Listview control. In VB6 it was easy - you just did the following (assumes "myListView" is the name of...
10
by: Vinay | last post by:
Hi, Is there a limit on maximum number of columns in listview control ? I am finding: In a listview control (Report Format) I am displaying a record with 400 fields. I am creating its column...
0
by: Mike Barrett | last post by:
I have a strange one here and I believe it is a bug. I googled it and saw others having a similar issue and nobody seems to have a fix. I will take another shot. I get this ERROR MESSAGE... ...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
3
by: Michael.Suarez | last post by:
Is it me, or does it seem like they put no effort into creating the listview control in .Net. listview. A few gripes I have with .Net listview that aren't present in vb6: -Inability to set...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.