❔ ✅ C# .NET issue, pretty simple problem but im new lol
hi, i want my program to say the persons username after, but im not sure what the code needs to look like for it
21 Replies
this is my current code
$paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/BlazeBin - yicspfvqjubq
A tool for sharing your source code with the world!
you can do string interpolation
what would the whole code need to look like?
this is your method right. What are username and password in this context
Username and Password
im using keyauth so it depends what the person registers with
it looks funky but webforms arent my expertise so ill overlook it if you put an an object inside " " it becomes a string unless you do string interpolation
i think i got it working
my friend helped me with a different method
but now i have this issue
the username and password get deleted when i press register
what's this for anyways
im messing around with GUIs to learn more about them, since i havent been coding for long
its not really for anything, just to enhance my learning
MessageBox.Show("Successfully Registered! + (Username.Text)", "KeyAuth", MessageBoxButtons.OK, MessageBoxIcon.Information);
The errors I see here is string interpolation as IceGPT said. Just so you fully understand. To use string interpolation you need to do this:
We include a $ sign before the string and encapsulate your variables in {} rather than round brackets
not this:
!close
Closed!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.