Eigentlich weiss ich noch nicht mal wieso das ein false positive ist, ich überprüfe nur ob die Textfelder leer sind.
Ich hab extra dafür noch mal ein komplett neues Projekt erstellt wo nichts ausser das drinne ist, aber trozdem immer noch false positive.
Code:
string username = textBox1.Text;
string password = textBox2.Text;
if (username == "" || password == "") {
MessageBox.Show("Please fill out both textfields");
} else {
MessageBox.Show("Username: " + username + "\n" + "Password: " + password);
}
so ähnlich erkannt wird? Oder mach ich irgendwas falsch? Hab echt keine ahnung wie ich sonst prüfen soll ob die leer sind.







