Solved

VB.net Highlighting a ListView Item

Posted on 2014-01-29
2
849 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal reports vb.net 2 54
cannot connect to sqlserver 8 35
Expression Evaluater 3 38
Import MySQL data into MS Access using VB.Net interface 5 29
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
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…

856 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