Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. List Box item coloring

List Box item coloring

Scheduled Pinned Locked Moved Visual Basic
databasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saam_cse
    wrote on last edited by
    #1

    I am retrieving data from database with list Box control. I like to show different items are different color depending upon condition. For example if I presenting student name in list box, when populating all student name, the student name who passed show in green color and who failed in red color. Please provide help in vb.bet.

    L 1 Reply Last reply
    0
    • S Saam_cse

      I am retrieving data from database with list Box control. I like to show different items are different color depending upon condition. For example if I presenting student name in list box, when populating all student name, the student name who passed show in green color and who failed in red color. Please provide help in vb.bet.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, This article[^] demonstrates the nice things a ListBox can do. It is C# code, but the same applies to VB.NET In essence, the listed items don't have to be strings, they could be any kind of object; and a ListBox supports user-drawing, so you decide how things look. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Voting for dummies? No thanks. X|


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups