Dies ist Teil 2 Meines Tutorials !
Code:
Try Dim sa As String Dim sb As String Dim a As New System.IO.StreamReader("C:\Gebug\" + TextBox1.Text + "\Username.txt") sa = a.ReadLine() a.Close() Dim b As New System.IO.StreamReader("C:\Gebug\" + TextBox1.Text + "\Password.txt") sb = b.ReadLine() b.Close() If TextBox1.Text = sa.ToString Then 'Do this If TextBox2.Text = sb.ToString Then 'do this MsgBox("Herzlich Willkommen!" + sa.ToString) Me.Hide() Form2.Show() Else 'give an error MsgBox("Error! Passwort ist falsch.") End If Else 'If its not equal give an error MsgBox("Error! Der Account existiert nicht.") End If Catch ex As Exception MsgBox("Error" + ex.Message) End Try
Viel Spaß damit =)
Du hast einen fehler in Dim b As New System.IO.StreamWriter("C:\Login\" + TextBox1.Text + "\Password.txt") der fehler ist TextBox1 ( da gehört TextBox2 )
mfg WeeD
66XxWeeDxX66 1 month ago
@JNTVFilm oha bist du cool
3Superstarx 1 month ago
@3Superstarx Bevor du motzt lern erstmal Deutsch!
JNTVFilm 2 months ago in playlist Weitere Videos von splitedchilll
bei mir kann das Catch nicht nicht ausgefürt werden . sonst pass alles
MultiProgrammierer 2 months ago
kann mir bitte i-jemand helfen
bei dem letzten else und end if sagte r mir das das n fehler sei aber ich habs genau so wie im video gemacht whats the problem???
HelpYouTv 2 months ago in playlist Weitere Videos von splitedchilll
bei mir ist das zweite else bei
Else 'give an error MsgBox("Error! Passwort ist falsch.") End If Else(<---beei diesen else ein fehler ) 'If its not equal give an error MsgBox("Error! Der Account existiert nicht.") End If Catch ex As Exception MsgBox("Error" + ex.Message) End Try
Antikerlab22892 4 months ago
kann man das auch mit einem ftp server machen?
das der computer da die sachen rein haut und sucht?
MyTutorialSky 4 months ago
nix geklappt blossfehler
3Superstarx 5 months ago
kast du mir den code bitte in einer txt datei schicken
StrickerLetsPlays 5 months ago
ohh wie dumm gerade fertig geworden und nebenbei noch andere programme offen gehabt da drücke ich auf verwerfen und weg war es !! :(
jetzt nochmall neu anfangen *weinen*
MrZoker1 6 months ago