Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    102
    Thanks
    2
    Thanked 5 Times in 4 Posts

    How do i make my groupbox1 generate a count on visual basic 2010?

    I want my groupbox to start a count whenever i import my txt file (contains usernames and passwords) but i need it to count 1 ever two lines (because the username is one line and the password is the second line.) So how do i do this? I already made the text "Account [0]" so now i just need it to start counting every two lines.

  • #2
    Regular Coder
    Join Date
    Mar 2012
    Posts
    102
    Thanks
    2
    Thanked 5 Times in 4 Posts
    Ok so i got it to count but for some reason it counts ever letter and not the words! how do i fix this? my code
    Code:
     Try
                GroupBox1.Text = String.Format("Accounts [ " & TextBox2.Text.Count & " ]")
            Catch ex As Exception
            End Try

  • #3
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts


  •  

    Posting Permissions

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