Hello coding forums, I am having difficulty in figuring out how to extract only certain character, or digits inside a textbox. I have been looking up similar methods but none seem to work for what I want to be done.
I have a textbox called textBox1. I then made a string called
Code:
string total = textBox1.Text
I tried to code a statement which grabs only the 1st, 3rd, 5th, etc of the string but it hasn't worked for me
I've been trying:
Code:
for (int i = 0; i < total.Length; i++)
{
textBox1.Text = total ;
}
PLEASE help me in figuring this out, and I'll instantly thank you cuz I really need to get this app done tonight before I lose my train of thought in the morning.
sorry mods, you may delete this if you would like. I figured it out using:
http://www.dotnetperls.com/substring
sorry for the thread