hi..
for changing the color of each item in different
columns.
declare a variable of type ListItem.
then set its value to the row whose color u want to
change ...then only Loop through the list items and
give them the colour u want.
i think this will help.
Sample code
Dim PreItem As MSComctlLib.ListItem
'TO FIND SOME TEXT WRITTEN IN A TEXT BOX IN LIST VIEW
Set LvFind = Lv.FindItem(TxtSearch.Text, lvwText,
,vwPartial)
If Not LvFind Is Nothing Then
LvFind.Bold = True
LvFind.ForeColor = vbBlue
For i = 1 To LvFind.ListSubItems.Count
LvFind.ListSubItems(i).Bold = True
LvFind.ListSubItems(i).ForeColor = vbBlue
'HERE COLOUR IS SET
Next
LvFind.EnsureVisible
'TO MAKE THE SELECTED ROW VISIBLE IF IT IS DOWN TO
SCROLL
LvFind.Selected = True
SearchedItem = LvFind.Key ' NOT FOR U
If PreSrchIdx <> LvFind.Index And PreSrchIdx <> 0
And PreSrchIdx <= Lv.ListItems.Count Then
Set PreItem = Lv.ListItems(PreSrchIdx)
PreItem.Bold = False
PreItem.ForeColor = vbDefault
For i = 1 To PreItem.ListSubItems.Count
PreItem.ListSubItems(i).Bold = False
PreItem.ListSubItems(i).ForeColor =
vbDefault
Next
DoEvents
End If
PreSrchIdx = LvFind.Index
Else
TxtSearch.FontBold = True
TxtSearch.ForeColor = vbRed
End If
OK
--- rnd <[EMAIL PROTECTED]> wrote:
> Can anyone help me to find information wuith regard:
>
> changing the colors of text in different columns in
> the Listview control
> tiling a background image
>
>
> is it possible to change the color of the background
> of each row??
>
> hmm, cant seem tio find much infos, any pointers
> would be well received!
> thanks!
>
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
---------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/