c# 4.0 - C# Loops, the input value of a textbox -
i'm newbie here , confuse c#.
here question must value user input on textbox , loop value textbox have, example textbox have 5 answer on label , must 12345.
it not loop, when execute program result input value on textbox
int intloop; (intloop = 0; intloop <= convert.toint32(txtevaluate.text); intloop++) { lblloop.text = intloop.tostring(); }
try appending loop's iterator textbox using +=
:
lblloop.text = string.empty; (int intloop = 1; intloop <= convert.toint32(txtevaluate.text); intloop++) { lblloop.text += intloop.tostring(); }
Comments
Post a Comment