Results 1 to 5 of 5

Thread: Count in listbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Posts
    68

    Count in listbox

    Hi, How to count the number of records found in listbox ah?

    Thanks everyone..

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Dig around and check out the properties of the listbox via the intellisense and you'll see that the Items property (collection) has a 'Count' property.

    Msgbox(ListBox1.Items.Count)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Posts
    68
    Thanks, i done it

  4. #4

  5. #5
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    The .NET listbox is a adds a bunch of methods/properties and also the Items collection can store any kind of object, not just strings so the whole ItemData kludge is no longer needed.

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