Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2003, 08:53 AM
omb omb is offline
Registered User
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listview Question

Can anyone tell me how to have coloured text in a listview please, i.e different coloured rows. Can this be done?

Thanxs

OMB

 
Old September 9th, 2003, 02:24 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Try this:

lvwOrders.ListItems.Item(x).ForeColor = color
For x2 = 1 To lvwOrders.ColumnHeaders.Count - 1
    lvwOrders.ListItems.Item(x).ListSubItems.Item(x2). ForeColor = color
Next





Similar Threads
Thread Thread Starter Forum Replies Last Post
ListView asters VB.NET 2002/2003 Basics 0 March 27th, 2008 05:00 AM
Problems with listview :S Norin Access VBA 2 June 16th, 2006 07:41 AM
listView AristotleYu ASP.NET 2.0 Basics 0 May 11th, 2006 04:54 AM
ListView Control JelfMaria VB How-To 4 May 5th, 2005 12:39 AM
Listview columns Duncan VS.NET 2002/2003 0 April 16th, 2004 03:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.