master maste
New Member
- Reaction score
- 32
Ok c# is giving me some more havoc.
I've got a 2 textboxes, one is called 'textbox1' the other is 'test'.
I want to get whats typed in 'test' and put it in 'textbox1' in a loop, adding each character one at a time till it reaches the end of the string.
I'm messing around with test.Text.Substring() but I'm not quite sure how to turn the characters in the 'test' box to an integer so that I can figure out when to stop the loop (this is necessary isn't it?).
also the for loop for some reason won't let me use strings, only integers, therefore I have no idea how to complete this...
fair to say google has not been my friend over the last few days.
Am I any where close?
I've got a 2 textboxes, one is called 'textbox1' the other is 'test'.
I want to get whats typed in 'test' and put it in 'textbox1' in a loop, adding each character one at a time till it reaches the end of the string.
I'm messing around with test.Text.Substring() but I'm not quite sure how to turn the characters in the 'test' box to an integer so that I can figure out when to stop the loop (this is necessary isn't it?).
also the for loop for some reason won't let me use strings, only integers, therefore I have no idea how to complete this...
Code:
string test= test.Text.Substring; // apparently I cant use this because it //can't turn a substring into a string.
for (int i = 0; i < test.Length; i++)
{
string s = test;
textbox1.AppendText(//completely confused with what to add here);
}
fair to say google has not been my friend over the last few days.
Am I any where close?