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. C#
  4. listview with compact framework

listview with compact framework

Scheduled Pinned Locked Moved C#
questioncsharp
3 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
    Sunshine Always
    wrote on last edited by
    #1

    hi the application is written in .net compact framework 1.0. i need to display a list of items with different forecolor for each item. the items get added to the list from a file. i have two problems: 1. the items get added but i get a horizontal scrollbar by default. i just want them too be added to the end like that in a listbox. 2. how do i set the forecolor of individual items? thanks.

    S 1 Reply Last reply
    0
    • S Sunshine Always

      hi the application is written in .net compact framework 1.0. i need to display a list of items with different forecolor for each item. the items get added to the list from a file. i have two problems: 1. the items get added but i get a horizontal scrollbar by default. i just want them too be added to the end like that in a listbox. 2. how do i set the forecolor of individual items? thanks.

      S Offline
      S Offline
      Sunshine Always
      wrote on last edited by
      #2

      i got the way to get view the items in a list with vertical scrollbar but the second problem still remains... does anyone have any suggestions??? thanks.

      D 1 Reply Last reply
      0
      • S Sunshine Always

        i got the way to get view the items in a list with vertical scrollbar but the second problem still remains... does anyone have any suggestions??? thanks.

        D Offline
        D Offline
        Diana Fernandez
        wrote on last edited by
        #3

        For each item in listview you have to set the color like this.listView1.Items[0].ForeColor = System.Drawing.Color.Red; this.listView1.Items[0].ForeColor = System.Drawing.Color.Blue;

        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