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. how to get present item from generic list using c#

how to get present item from generic list using c#

Scheduled Pinned Locked Moved C#
csharphelptutorial
3 Posts 3 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.
  • R Offline
    R Offline
    ramyanaidu
    wrote on last edited by
    #1

    Hai i am doing program using list i need to add item to list using first,next,last buttons contioniously when i press previous button it should display the previous item in the list plz any on help me in this case

    A C 2 Replies Last reply
    0
    • R ramyanaidu

      Hai i am doing program using list i need to add item to list using first,next,last buttons contioniously when i press previous button it should display the previous item in the list plz any on help me in this case

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      well.. the last item in the list will be the total number of items... -1 :omg: Actually, -2, since arrays always start at 0. Then after that everytime you click previous you go one lower. So you'd have to have some variable for the current item your looking at.

      My current favourite word is: Bauble!

      -SK Genius

      1 Reply Last reply
      0
      • R ramyanaidu

        Hai i am doing program using list i need to add item to list using first,next,last buttons contioniously when i press previous button it should display the previous item in the list plz any on help me in this case

        C Offline
        C Offline
        CKnig
        wrote on last edited by
        #3

        You can use the LinkedList( Of T) or use the index (like the other poster mentioned) ... it's not that hard ;)

        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