Richtextbox- int to characters

I'm trying to have a Richtextbox output the following:

* ** *** **** ***** (etc) 

Here's the code I've attempted so far:

 private void button1_Click(object sender, EventArgs e) { for (int i = 0; i < 100; i++) { richTextBox1.AppendText(i.ToString() + Environment.NewLine); foreach (string line in richTextBox1.Lines) { int count = i; richTextBox1.Text.Replace(count.ToString(), "*"); } } } 

As of current, the RTB only displays strings 0-100, each on a new line. The "*" never shows up.

Does anyone see where I'm going wrong or have a better solution?

by eyeseesharp via /r/csharp

Leave a Reply