Yeah, I've been spending a lot of time on the other side (.NET) these days...
How is the new building working out - looks great from what I've seen on TV (NHL Centre Ice package and Tivo is a great combination!). My wife has been wanting to visit some relatives back in NJ so maybe I'll sneak back one of these days and check it out in person. In looking at it what I wrote would work in a grid, so maybe that is what I was thinking of. There must be a way to do it in a listbox though - if you select multiple items in a listbox only those items change backcolor. Curious... Lou -----Original Message----- From: Jack Skelley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 06, 2007 3:15 PM To: [EMAIL PROTECTED] Subject: Re: VFP8: Listbox Row Colors Lou: Long time no chat... I tried that but there is no subscript to the ItemBackColor property. If you issue something like ItemBackColor(2) = rgb(255,0,0) all the rows turn red not just row 2. I know that a grid can alternate row colors with dynamic back color. I have way too much code in place with the listbox to think about a rewrite using a grid. Thanks for the suggestion! Regards, Jack Lou Syracuse wrote: > Jack, > > I think I've done something like this before, but it may not have been with > a listbox so may be a bit of a WAG. Plus I have been writing more .NET code > that VFP code lately... > > Maybe something like this in the ItemBackColor value: > =iif(<condition>, rgb(255,255,255), rgb(128,128,128)) > > One problem may be finding the right condition, if the control is not > populated by a table or cursor. > > Hope it works for 'ya. > > Lou > > > > -----Original Message----- > From: Jack Skelley [mailto:[EMAIL PROTECTED] > > Good Afternoon All: > Is there anyway to make the rows of a list box alternate different > colors to simulate green bar type paper and keep all the rows enabled? > I can make the row disabled color green then I can't click on that row > to get a more detailed view of the data displayed. > Thanks! > Regards, > > Jack Skelley > > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. > If you have received this e-mail in error please notify the originator of the message. This footer also confirms that this e-mail message has been scanned for the presence of computer viruses. > Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Merle Norman Cosmetics or The Nethercutt Collection. > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

