1;
Create a new windows form application in vb.net. This is a simple tutorial so it won't be too hard.
2;
Add these things to the form. Make sure you add everything & label as told.
x1 Textbox
x2 Buttons (Name one Check! & Load names)
x2 Labels (Checked: & Available:)
x2 Listboxes
x1 OpenFileDialog
x1 BackGround worker
3;
Put the things like this or however you want. Only the first four listed things are visually seen.
Place the textbox in the top left & the two buttons right next to it.
Place the two labels under & put two listboxes under accordingly. I will update with pictures at 50 posts.
4;
Double click the form. Add this.
5;
Double click the first textbox & add this.
6;
Double click the first button & add this.
7;
Double click the second button & add this.
8;
Double click the background worker (under the form) and add this.
9;
add this to bgworker_progresschanged
10;
Add this to the end.
-
OR, you could copy and paste this whole thing.
Hope this helped. Credits to that guy for the code.
Create a new windows form application in vb.net. This is a simple tutorial so it won't be too hard.
2;
Add these things to the form. Make sure you add everything & label as told.
x1 Textbox
x2 Buttons (Name one Check! & Load names)
x2 Labels (Checked: & Available:)
x2 Listboxes
x1 OpenFileDialog
x1 BackGround worker
3;
Put the things like this or however you want. Only the first four listed things are visually seen.
Place the textbox in the top left & the two buttons right next to it.
Place the two labels under & put two listboxes under accordingly. I will update with pictures at 50 posts.
4;
Double click the form. Add this.
Code
Dim file As String
Dim currentWorkerName As String
Dim currentWorkerNameA As Boolean5;
Double click the first textbox & add this.
Code
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
TextBox1.ForeColor = Color.Black
End Sub6;
Double click the first button & add this.
Code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MsgBox("Empty minecraft username!", MsgBoxStyle.Information, "@Available Notification")
Return
End If
Dim wc As New Net.WebClient
Dim res As String
res = wc.DownloadString("https ://minecraft. net/haspaid.jsp?user=" + TextBox1.Text)
ListBox1.Items.Add(TextBox1.Text)
If res.Contains("false") Then
TextBox1.ForeColor = Color.LightGreen
ListBox2.Items.Add(TextBox1.Text)
Else
TextBox1.ForeColor = Color.Red
End If
End Sub7;
Double click the second button & add this.
Code
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
ofd.Filter = "Text Files (*.txt)|*.txt"
ofd.ShowDialog()
If Not ofd.FileName = "" Then
file = ofd.FileName
bgWorker.RunWorkerAsync()
End If
End Sub8;
Double click the background worker (under the form) and add this.
Code
Private Sub bgWorker_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles bgWorker.DoWork
If System.IO.File.Exists(file) = False Then
Return
End If
Dim objReader As New System.IO.StreamReader(file)
Dim count As Integer = 0
Do While objReader.Peek() <> -1
count += 1
currentWorkerName = objReader.ReadLine()
Dim wc As New Net.WebClient
Dim res As String
res = wc.DownloadString("https ://minecraft. net/haspaid.jsp?user=" + currentWorkerName)
If res.Contains("false") Then
currentWorkerNameA = True
Else
currentWorkerNameA = False
End If
bgWorker.ReportProgress(count)
System.Threading.Thread.Sleep(150)
Loop
End Sub9;
add this to bgworker_progresschanged
Code
Private Sub bgWorker_ProgressChanged(sender As Object, e As System.ComponentModel.ProgressChangedEventArgs) Handles bgWorker.ProgressChanged
ListBox1.Items.Add(currentWorkerName)
If currentWorkerNameA Then
ListBox2.Items.Add(currentWorkerName)
End If
End Sub10;
Add this to the end.
Code
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class-
OR, you could copy and paste this whole thing.
Code
Public Class Form1
Dim file As String
Dim currentWorkerName As String
Dim currentWorkerNameA As Boolean
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
TextBox1.ForeColor = Color.Black
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MsgBox("Empty minecraft username!", MsgBoxStyle.Information, "@Available Notification")
Return
End If
Dim wc As New Net.WebClient
Dim res As String
res = wc.DownloadString("https ://minecraft. net/haspaid.jsp?user=" + TextBox1.Text)
ListBox1.Items.Add(TextBox1.Text)
If res.Contains("false") Then
TextBox1.ForeColor = Color.LightGreen
ListBox2.Items.Add(TextBox1.Text)
Else
TextBox1.ForeColor = Color.Red
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
ofd.Filter = "Text Files (*.txt)|*.txt"
ofd.ShowDialog()
If Not ofd.FileName = "" Then
file = ofd.FileName
bgWorker.RunWorkerAsync()
End If
End Sub
Private Sub bgWorker_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles bgWorker.DoWork
If System.IO.File.Exists(file) = False Then
Return
End If
Dim objReader As New System.IO.StreamReader(file)
Dim count As Integer = 0
Do While objReader.Peek() <> -1
count += 1
currentWorkerName = objReader.ReadLine()
Dim wc As New Net.WebClient
Dim res As String
res = wc.DownloadString("https ://minecraft. net/haspaid.jsp?user=" + currentWorkerName)
If res.Contains("false") Then
currentWorkerNameA = True
Else
currentWorkerNameA = False
End If
bgWorker.ReportProgress(count)
System.Threading.Thread.Sleep(150)
Loop
End Sub
Private Sub bgWorker_ProgressChanged(sender As Object, e As System.ComponentModel.ProgressChangedEventArgs) Handles bgWorker.ProgressChanged
ListBox1.Items.Add(currentWorkerName)
If currentWorkerNameA Then
ListBox2.Items.Add(currentWorkerName)
End If
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class


![[Image: ZspE9dA.gif]](https://i.imgur.com/ZspE9dA.gif)