Gives me this error:Conversion from string "asd" to type 'Boolean' is not valid.
Immediate window: A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Code:
If tb1.Text Or tb2.Text = "" Then
MsgBox("Please input all fields", MsgBoxStyle.Critical + MsgBoxStyle.OkOnly, "Error")
Else
MkDir("C:\Windows\Accounts" + tb1.Text)
Dim username As New System.IO.StreamWriter("C:\Windows\Accpimts" + tb1.Text + "\" + "username.txt")
username.Write(tb1.Text)
username.Close()
Dim password As New System.IO.StreamWriter("C:\Windows\Accpimts" + tb1.Text + "\" + "password.txt")
password.Write(tb1.Text)
password.Close()
MsgBox("Account Created", MsgBoxStyle.Information, "Accounts Created")
End If
Me.Hide()
Form1.Show()
End Sub