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

public Form1()
      {
         InitializeComponent();
         for (int i = 1980; i < 2051; i++)
         {
            richTextBox1.Text += i.ToString() + '\n';
         }
      }

O you can use like this way also

for (int i = 1980; i < 2051; i++)
            {
                richTextBox1.Text += i.ToString() + Environment.NewLine  ;
            }

thnx guys all your codes are working fine thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.