C
C#15mo 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
SinFluxx15mo ago
Have you added controls to your form and named them txtName and txtPass? Also, if you're sending code try to $codegif instead
ʙʀʊʍɨ
ʙʀʊʍɨOP15mo ago
ah i see i had to name the controls yea it works now thanks
SinFluxx
SinFluxx15mo ago
🙂 cool, maybe try and dig a bit deeper into what you're seeing online rather than just copying it without understanding! $close
MODiX
MODiX15mo ago
Use the /close command to mark a forum thread as answered
ʙʀʊʍɨ
ʙʀʊʍɨOP15mo ago
will do thanks
Want results from more Discord servers?
Add your server