borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (ActiveX Remove MenuBar ToolBar AddressBar)Next Topic (HowTo: Open a non-modal VB form (activex dll) from a C# client) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : ListView
Poster Message
stormrage
Level: Trainee

Registered: 23-09-2004
Posts: 3

icon ListView

Hi, i want to crate an usercontrol similar to Listview.
but i have problems   when creating subitems.
Can anyone give a litle help on this.

08-11-2004 at 05:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: ListView

Sorry, are you sayimng here that you want help with adding sub-items to the ListView Control, or that you are trying to create a whole new ListView Control of your own.
If it is the latter, then without knowing what you have done with the Control already it is impossible to say.

____________________________
multi-tasking - the ability to hang more than one app. at the same time.

09-11-2004 at 08:49 AM
View Profile Send Email to User Show All Posts | Quote Reply
dede
Level: Trainee

Registered: 30-11-2004
Posts: 1
icon Re: ListView

Dim ch As ColumnHeader
Dim data As ListItem

Set ch = List1.ColumnHeaders.Add(, , "Artist", 1850)
Set ch = List1.ColumnHeaders.Add(, , "Title", 2800)
Set ch = List1.ColumnHeaders.Add(, , "Notes", 1200)
Set ch = List1.ColumnHeaders.Add(, , "Year", 700)

Set data = List1.ListItems.Add(, , txtArtist)
data.SubItems(1) = txtTitle
data.SubItems(2) = txtNotes
data.SubItems(3) = txtYear

....bye

30-11-2004 at 07:36 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : ListView
Previous Topic (ActiveX Remove MenuBar ToolBar AddressBar)Next Topic (HowTo: Open a non-modal VB form (activex dll) from a C# client) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder