Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-22-2012, 04:43 PM   PM User | #1
bigcasey123
New Coder

 
Join Date: Feb 2012
Posts: 96
Thanks: 1
Thanked 5 Times in 4 Posts
bigcasey123 is an unknown quantity at this point
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.
bigcasey123 is offline   Reply With Quote
Old 12-22-2012, 06:17 PM   PM User | #2
bigcasey123
New Coder

 
Join Date: Feb 2012
Posts: 96
Thanks: 1
Thanked 5 Times in 4 Posts
bigcasey123 is an unknown quantity at this point
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
bigcasey123 is offline   Reply With Quote
Old 12-31-2012, 04:25 AM   PM User | #3
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Take a look at: http://www.youtube.com/watch?v=ow1RV5lBYxM
tempz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:23 AM.


Advertisement
Log in to turn off these ads.