Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 March 3rd, 2009, 12:35 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change Listbox List Color

Hi All
Can someone answer this question is it possible to change a listbox color based on criteria within the listbox data

Regards
__________________
Brendan Bartley
 
Old March 10th, 2009, 09:08 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You can change the backcolor of the listbox, if that is what you are after.

You need to choose an event to use to get the criteria (Listbox On Got Focus, Form On Current, etc), then do a comparison somehow (If Then Else or Select End) and then set the backcolor when criteria are met.

What did you have in mind?
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change color of text in a listbox? ja8261 VB.NET 2002/2003 Basics 11 April 27th, 2007 10:14 AM
How to apply text color on Listbox h@ckerz Visual Basic 2005 Basics 2 January 29th, 2007 08:14 PM
How to change the color of list control's column gemini Visual C++ 1 August 28th, 2006 12:58 AM
Change color of drop down list bekim CSS Cascading Style Sheets 1 August 9th, 2005 08:29 AM
listbox, different color for each item? MichaelTJ ADO.NET 1 November 13th, 2003 10:37 PM





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