VB.NET Select from listbox

08/12/2012 12:24 Coristo#1
Hello i need help with selecting from listbox

[Only registered and activated users can see links. Click Here To Register...]

IT's Youtube Account checker. I need to send from listbox to textbox login and password. Login and Password saved in format
Code:
login:password
.

Code from Button start:

Code:
Private Sub Zaladuj_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Zaladuj.Click
                                OpenFileDialog1.Title = "Open account file"
                                OpenFileDialog1.ShowDialog()
                                Dim wczytaj As New IO.StreamReader(OpenFileDialog1.FileName)
                                While (wczytaj.Peek() > -1)
                                                konta.Items.Add(wczytaj.ReadLine)
                                                ilosc.Text = konta.Items.Count
                                End While
                End Sub
08/14/2012 17:40 Coristo#2
@refresh
08/15/2012 18:24 andrew12341-Hacked!#3
Try read line from start to " : " and from " : " to end ;)
Or use split
08/16/2012 22:28 Coristo#4
Can you say how to do that ?
08/17/2012 02:10 kissein#5
Quote:
Originally Posted by Coristo View Post
Can you say how to do that ?
[Only registered and activated users can see links. Click Here To Register...]
08/18/2012 12:09 aleeeeee#6
Code:
Dim StringX as String = "username:password"
Dim ArrayString() as String = StringX.Split(":")
'ArrayString(0) = "username"
'ArrayString(1) = "password"