how to auto generate number value in a bill no textbox using c# and the number should increase sequentially 2001,2002,2003?
<pre><code>public partial class Form1 : Form  
{
    int billno=2000;
    string code;

    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        billno = Convert.ToInt32(code);
        billno = billno + 1;
        textBox1.Text = " "+ billno;

    }        

}
</code></pre>
