Home All Groups Group Topic Archive Search About
Author
14 Aug 2006 8:21 PM
Seema Multani
How can I find out weather my listbox is empty or not

Author
17 Aug 2006 1:28 AM
Chris
Seema Multani wrote:
> How can I find out weather my listbox is empty or not
>
>
>

ListBox.Items.Count = 0
Author
17 Aug 2006 1:39 AM
Denis Voyer
If ListBox.Items.Count = 0 Then
    Do something
Else
    Do this
End If

Or if you want to use the result somewhere else set a variable to the items
count.

Variable = ListBox.Items.Count

Denis

Show quoteHide quote
"Seema Multani" <se***@hotmail.com> wrote in message
news:uE8mZLZwGHA.4512@TK2MSFTNGP05.phx.gbl...
> How can I find out weather my listbox is empty or not
>
>