|
-
Feb 9th, 2006, 08:51 PM
#1
Thread Starter
Junior Member
[RESOLVED] Listview Control 5.0
How do you add items to the 5.0 version of listview control. I know how to do that with listview 6.0 but the parameters used in 6.0 don't exist in the older version. I am using 5.0 version because you can add the Xp look to it. So if you know a way to add the XP look to the 6.0 version that would be equally nice =D
Thanks in advance
Last edited by Hack; Feb 10th, 2006 at 07:08 AM.
Reason: Added [RESOLVED] to thread title and green "resolved" checkmark
-
Feb 9th, 2006, 08:56 PM
#2
Re: Listview Control 5.0
I just added a 5.0 listview and its the same parameters.
VB Code:
ListView1.ListItems.Add , , "Test"
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 9th, 2006, 09:00 PM
#3
Thread Starter
Junior Member
Re: Listview Control 5.0
Thats good but I want it to add the item to a certain column in 6.0 that would looks like:
ListView1.ListItems(1).ListSubItems.Add , , "text1"
but 5.0 doesn't have those parameters. >_<
Thanks for the help though.
-
Feb 9th, 2006, 09:03 PM
#4
Re: Listview Control 5.0
VB Code:
Option Explicit
Private Sub Form_Load()
Dim itm As ListItem
Set itm = ListView1.ListItems.Add(, , "Test")
itm.SubItems(1) = "Sub Item"
Set itm = Nothing
End Sub
'Result:
'Test | Sub Item
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 9th, 2006, 09:07 PM
#5
Thread Starter
Junior Member
Re: Listview Control 5.0
Oh now it works thanks man appreciate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|