Solved

VB.net Highlighting a ListView Item

Posted on 2014-01-29
2
855 Views
Last Modified: 2014-01-29
Hi

After adding a ListView item, I want to colour the background of the text?
How would I do this?
Is it possible to shade it using a gradient style?
0
Comment
Question by:murbro
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 39817451
Me.ListView1.Items(index).BackColor = your desired color

And about the gradient... theorically it's possible, but you must draw by yourself all the element, including icon, text, and so on... if you want to experiment with it, you must set the OwnerDraw property of the ListView to true and then write code in the DrawItem, DrawSubItem and DrawColumnHeader events.

Hope that helps.
0
 

Author Closing Comment

by:murbro
ID: 39817470
Thanks very much
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS 2016 Rendering HTML tables 3 60
Access Schema 6 45
make control visible based off other control value 7 18
Check only one toolstripmenu item 12 27
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question