Results 1 to 2 of 2

Thread: [RESOLVED][2008] how many items are in Listview?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    Resolved [RESOLVED][2008] how many items are in Listview?

    code below displays only nr of items until selected item, so if i have 5 items in listview & i select item nr.4 the code will say that i have 3 items in the list instead of 5. So how I know how many items are in listview?
    Code:
    ListView1.SelectedIndices.Item(0).ToString
    Last edited by goldenix; Apr 25th, 2008 at 06:37 AM.

    M.V.B. 2008 Express Edition

  2. #2
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    UK
    Posts
    489

    Re: [2008] how many items are in Listview?

    Code:
    ListBox1.Items.Count.ToString()
    Learning C♯

    Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width