?
Solved

VB.net Highlighting a ListView Item

Posted on 2014-01-29
2
Medium Priority
?
889 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 2000 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:Murray Brown
ID: 39817470
Thanks very much
0

Featured Post

Technology Partners: 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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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