Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help - ListBox Counter
#1
I've coded an application which allows people to import a list of usernames, and check whether or not they are available on the website Habbo Hotel.

What I want to do though, is add a counter at the bottom (a Label), which displays the number of accounts that have been tested. This is a really simple task but I can't for the life of me work out how to do it, as I haven't coded anything for a long time..

Here is my current code:
Code:
For Each fn As String In ListBox1.Items
            Try
                Dim myDatabuffer As Byte() = myWebClient.DownloadData("http://habbo.com/home/" & fn)
                Dim download As String = Encoding.ASCII.GetString(myDatabuffer)
            Catch Ex As Exception
                RichTextBox1.AppendText((Chr(10) & fn))
            End Try
        Next
        Label1.Text = "Done"

Thanks.
Reply


Messages In This Thread
Need some help - ListBox Counter - by Fragma - 06-22-2011, 12:27 PM
RE: Need some help - ListBox Counter - by Fragma - 06-23-2011, 08:19 AM
RE: Need some help - ListBox Counter - by Fragma - 06-30-2011, 03:24 AM
RE: Need some help - ListBox Counter - by Fragma - 07-03-2011, 03:11 AM
RE: Need some help - ListBox Counter - by Fragma - 07-03-2011, 04:11 AM
RE: Need some help - ListBox Counter - by Fragma - 07-03-2011, 04:25 AM
RE: Need some help - ListBox Counter - by Fragma - 07-03-2011, 05:13 AM
RE: Need some help - ListBox Counter - by H-Q - 07-03-2011, 05:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TextBox2.Text | Transfer Text to ListBox Die 3 2,401 01-02-2012, 06:09 PM
Last Post: AceInfinity
  [VB.NET] - ListBox Drag & Drop - [TUT] Fragma 10 6,984 08-25-2011, 07:02 PM
Last Post: AceInfinity
  [How To] Remove Duplicates From A Listbox PURP 6 6,461 05-12-2011, 02:31 PM
Last Post: PURP
  Listbox Help Danny 8 3,051 04-18-2010, 12:37 AM
Last Post: RaZoR03
  Save Listbox Danny 5 2,134 04-18-2010, 12:35 AM
Last Post: RaZoR03

Forum Jump:


Users browsing this thread: 1 Guest(s)