How do I get the first 3 characters of the text in a textbox?
For example, textBox1.Text = "HITHEREGUYS"
When I get the first 3 characters, it should show HIT
.
string result = textBox1.Text.Substring(0,3);
Use Substring
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With