Sinisterly
New To VB, any pointers? - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: New To VB, any pointers? (/Thread-New-To-VB-any-pointers)



New To VB, any pointers? - 3r3bus - 07-07-2011

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?


RE: New To VB, any pointers? - Coder-san - 07-07-2011

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.