@shamelesstoad that worked, thank you so much.
I have no idea what I am doing wrong. This is my code:
private void myButton_Click(object sender, RoutedEventArgs e)
string message = "";
for (int i = 0; 1 < 10; i++)
message = message + i.ToString() + System.
myTextBlock.Text = message;
and for some reason it has a green line under myTextBlock and said there is unreachable code detected. What am I doing wrong?