0

hi guys trouble again, i want to print year from 1980 up to 2050 using loop in richtextbox and apply newline every print. thnx in advance guys

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by auwi987
0
public Form1()
      {
         InitializeComponent();
         for (int i = 1980; i < 2051; i++)
         {
            richTextBox1.Text += i.ToString() + '\n';
         }
      }

Edited by thines01: n/a

0

O you can use like this way also

for (int i = 1980; i < 2051; i++)
            {
                richTextBox1.Text += i.ToString() + Environment.NewLine  ;
            }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.