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

listview

how do i string into subitems. i have 3 headers ..................that
fine......... i am doing irc chat similar to mirc. it is list command
from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in the
air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet User-Com's
#Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'
in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " & C(4) &
" " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As String,
ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub

Jul 21 '05 #1
6 1559
Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:
how do i string into subitems. i have 3 headers ..................that
fine......... i am doing irc chat similar to mirc. it is list command
from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in the
air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet User-Com's
#Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'
in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " & C(4) &
" " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As String,
ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub

Jul 21 '05 #2
i added last one

lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6, but cannot figure out in vb.net
regards
chrisrock wrote:
Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:
how do i string into subitems. i have 3 headers ..................that
fine......... i am doing irc chat similar to mirc. it is list command
from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in the
air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet User-Com's
#Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'
in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " & C(4) &
" " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As String,
ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub


Jul 21 '05 #3
i tried many way to do but not getting into subitems.

Dim lvi As New ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)

Supra wrote:
i added last one
lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6, but
cannot figure out in vb.net
regards
chrisrock wrote:
Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:
how do i string into subitems. i have 3 headers
..................that fine......... i am doing irc chat similar to
mirc. it is list command from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in
the air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet
User-Com's #Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'
in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " & C(4)
& " " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As
String, ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub


Jul 21 '05 #4
I use it in a MDIChild form, it displays nothing!
does ne knows?
regsards,
Supra wrote:
i tried many way to do but not getting into subitems.

Dim lvi As New ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)

Supra wrote:
i added last one
lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6, but
cannot figure out in vb.net
regards
chrisrock wrote:
Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:

how do i string into subitems. i have 3 headers
..................that fine......... i am doing irc chat similar to
mirc. it is list command from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in
the air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet
User-Com's #Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'
in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " &
C(4) & " " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As
String, ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub



Jul 21 '05 #5
by addding declare variable to string in case "322"
regards,

Supra wrote:
I use it in a MDIChild form, it displays nothing!
does ne knows?
regsards,
Supra wrote:
i tried many way to do but not getting into subitems.

Dim lvi As New ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)

Supra wrote:
i added last one
lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6,
but cannot figure out in vb.net
regards
chrisrock wrote:

Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:

> how do i string into subitems. i have 3 headers
> ..................that fine......... i am doing irc chat similar
> to mirc. it is list command from server sending list.
> i know how to do pasrse lists................that fine.
>
> Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is
> in the air! ! !
> Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
> Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet
> User-Com's #Class Project ||| /msg Teacher timeclass |||
> www.user-com.undernet.org/class Enjoy :)'
>
>
> in class project:
> Case "322" 'Lists
> Dim frml As New frmLvwLists
> frml.AddLists(C(3), C(4), C(5))
> Debug.WriteLine("list : " & C(3) & " " &
> C(4) & " " & C(5))
>
> if form project:
> Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As
> String, ByVal szTopic As String)
>
> Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
> lvi.SubItems.Add(szUsers)
> lvi.SubItems.Add(szTopic)
> Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
> szTopic) ===> i can see in debug. how do i get string into
> listview.subitems?
>
> regards,?
> end sub
>
>
>


Jul 21 '05 #6
by addding declare variable to string in case "322"
regards,

Supra wrote:
I use it in a MDIChild form, it displays nothing!
does ne knows?
regsards,
Supra wrote:
i tried many way to do but not getting into subitems.

Dim lvi As New ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)

Supra wrote:
i added last one
lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6,
but cannot figure out in vb.net
regards
chrisrock wrote:

Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)


"Supra" wrote:

> how do i string into subitems. i have 3 headers
> ..................that fine......... i am doing irc chat similar
> to mirc. it is list command from server sending list.
> i know how to do pasrse lists................that fine.
>
> Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is
> in the air! ! !
> Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
> Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet
> User-Com's #Class Project ||| /msg Teacher timeclass |||
> www.user-com.undernet.org/class Enjoy :)'
>
>
> in class project:
> Case "322" 'Lists
> Dim frml As New frmLvwLists
> frml.AddLists(C(3), C(4), C(5))
> Debug.WriteLine("list : " & C(3) & " " &
> C(4) & " " & C(5))
>
> if form project:
> Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As
> String, ByVal szTopic As String)
>
> Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
> lvi.SubItems.Add(szUsers)
> lvi.SubItems.Add(szTopic)
> Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
> szTopic) ===> i can see in debug. how do i get string into
> listview.subitems?
>
> regards,?
> end sub
>
>
>


Jul 21 '05 #7

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

Similar topics

6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
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...
5
by: John Devlon | last post by:
Hi, Does anyone know how to get a value of a second column of a selected item in Listview. I've create a listview and added this code Listview.Items.Clear() Listview.Columns.Clear()...
0
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
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...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, In my application I need to periodically remove all current items from a ListView and add a new set into it. The following abbreviated code contains the basic idea: private void...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.