C
C#11mo ago
ʙʀʊʍɨ

✅ Error in login form c# code

I'm larning C# and WinForms right now and I tried to make a login form. I've seen many people use this parameter txtSth.Text; but for me it says it does not exist in the current context. (I've attached my code and the error message)
6 Replies
SinFluxx
SinFluxx11mo ago
Have you added controls to your form and named them txtName and txtPass? Also, if you're sending code try to $codegif instead
ʙʀʊʍɨ
ʙʀʊʍɨ11mo ago
ah i see i had to name the controls yea it works now thanks
SinFluxx
SinFluxx11mo ago
🙂 cool, maybe try and dig a bit deeper into what you're seeing online rather than just copying it without understanding! $close
MODiX
MODiX11mo ago
Use the /close command to mark a forum thread as answered
ʙʀʊʍɨ
ʙʀʊʍɨ11mo ago
will do thanks