DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    61

    Question Set ForeColor To A Single Cell In ListView

    Is there a way to set the ForeColor of a single cell in a Listview? I'm trying to use the following code to achieve this but, it just doesn't work. I have also tried many other combinations that give the same result...NOTHING!

    ListView1.Items(ListView1.Items.Count - 1).SubItems(3).ForeColor = Color.Red

    Any help would be appreciated.

    Thanks!

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,652
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Feb 2008
    Posts
    61
    Thanks Hack, that worked. I knew there had to be a way because I've done it in VB6. I was about to go nuts. I was just needing the following line.

    xitem.UseItemStyleForSubItems = False

    Thanks again.

Similar Threads

  1. Create XML file from a string in SQL server 2000
    By shan_2007 in forum Database
    Replies: 0
    Last Post: 12-11-2007, 06:34 AM
  2. Getting a GUI to run
    By Eric in forum Java
    Replies: 4
    Last Post: 04-14-2006, 09:09 AM
  3. Input string was not in a correct format
    By mdengler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 02:32 PM
  4. RUNTIME ERROR saving a recordset
    By Des in forum VB Classic
    Replies: 5
    Last Post: 05-15-2002, 03:16 PM
  5. Replies: 1
    Last Post: 11-26-2001, 09:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links