Hi Guys,
right now i am making accounting software project. In this project, i have used one
list box for storing accounting groups. now here is a problem.
I have stored 50 groups. But, I can see only 30 groups at a time. to see another 20
groups i have to scroll the list. what i want to do is that,
I want to write "20 more" at the end of 30th group,
"19 more" at the end of 31th group,
"18 more" at the end of 32th group, and so on.
Please help me to do this.
Thanks.

Recommended Answers

All 2 Replies

See if this helps.

For i As Integer = 1 To 35
            ListBox1.Items.Add("item " & i) '// add 35 items to the ListBox.
        Next

        For i As Integer = ListBox1.Items.Count + 1 To 50
            ListBox1.Items.Add("item " & i) '// add the remaining items to the ListBox.
        Next
        MsgBox("Total Items: " & ListBox1.Items.Count)

hi

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.