Login Register






New To VB, any pointers? filter_list
Author
Message
New To VB, any pointers? #1
Hey,
I've recently started mucking around in VB... any pointers you would like to share? I might have a few question here and there, I'll use this thread to ask them.

Already have quick question: how do I add a function in my program to be able to select a .txt file from you pc?



Reply

RE: New To VB, any pointers? #2
In case anybody else has the same question, here is the same reply I pmed to OP.

Coder-san Wrote::
Yes, you would need an Array/List/Queue of String (in the declaration area, because we will need the variable in the whole form).
Code:
Dim ArrLogin As String() 'ArrLogin is our Array of String
What we will do next is we will split the whole Text Document in parts on the basis of "Lines", which we call CrLf or linebreak.
Code:
Dim openDialog As New OpenFileDialog openDialog.Filter = "Text Document|*.txt" If openDialog.ShowDialog = Dialogresult.OK Then ArrLogin = IO.File.ReadAllLines(openDialog.Filename) 'Your Function to Try each login one by one End If
That's all I can help you with. I have no idea how a user logs-in in Minecraft. If it happens in an app, then it would be tricky, you would have to get handle of textboxes and what-not.
It would be easier if you can login in the browser.
But here's the catch, it would be the opposite for speed.
[Image: rytwG00.png]
Redcat Revolution!

Reply