473,386 Members | 1,962 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,386 software developers and data experts.

VB6 listview to VB 2005 listview - Help please

Hi Everyone,
I try to migrate a VB6 app to VB 2005.
I have a problem with the migration of the Ax.Listview. I want to
use
the VB 2005 Listview insteed.
I load a text file in the listview LV.
Here is a sample text file:
"1234567"
3
"Bart"
123456
0
0
"Robert"
97212
2
3
"Oscar"
2435235
2
1

The first line is a string to test if the file has been created by my
app.
The second line is the DataCpt value.
Public Sub RefreshLV()
Dim li As ComctlLib.ListItem
Dim i As Integer
QShort(1, DataCpt) 'Trier les données
FrmMain.LV.ListItems.Clear()
For i = 1 To DataCpt
li = FrmMain.LV.ListItems.Add( , ,
Datas(i).Nom)
li.SubItems(1) = CStr(Datas(i).Number)
li.SubItems(2) = CStr(Datas(i).Round1)
li.SubItems(3) = CStr(Datas(i).Round2)
Next i
End Sub
Please could you explain me how to migrate the Public Sub
RefreshLV() ?
Thank you.
Rita

Apr 21 '07 #1
0 940

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Maheshkumar.R | last post by:
hi groups, I have placed an listview control, i want to iterate thru the control and find the clicked event items. listView2.Items.Add(fname.ToString(), i); how i can perform the iteration...
12
by: J L | last post by:
When I fill a listview, I resize the columns to fit the data. I need to know if the data will fit vertically or if there will be a vertical scroll bar. I need to know this so I can allow for it on...
6
by: Jack | last post by:
Hello, I've noticed through searching this group's previous posts that one can get the item the mouse is over in a listview control but I did not see how to get the subitem the mouse is over. Is...
6
by: Maileen | last post by:
Hi, I have a listview in report mode. I have 3 columns in this listview and 1 column i would like to hide it from user's view. i tried to give width = 0 but user is still able to resize column...
2
by: jennifer1970 | last post by:
Hi. I am using VB 2005 Beta 2. I have never used a listview before. I am used to VB6. So please bear with me - I am trying to learn. I have a listview and want to be able to get the items ...
6
by: Dave | last post by:
VB6 has a SorkKey property that you can setup on the ListView control to tell the ListView what column to use for sorting. In .NET there is a Sort() method and a SortOrder property that you can...
2
by: Al Reid | last post by:
I'm using VB 2005. I have a production application where I load a ListView with information from several sources based on user interaction. At some point I need to iterate through the Items...
1
by: polocar | last post by:
Hi, I'm using Visual C# 2005 (part of Visual Studio 2005 Professional Edition), and I have the following problem: I populate a ListView object with several items, and at the end of this process I...
0
by: lukgol3 | last post by:
Hello. I have a problem with class ListView. I want to create control based on my class 'LisCtrl' This is how I create my class: #pragma once public ref class ListCtrl :public...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.