How do I get to increment a textbox content on page load in such a way that if i run my application and if the form is getting loaded the value should be 0000001 and if i load the same form again with out closing my application it should be 0000002. If i close my application and run again the value should be 0000001
Share
You need to create a static counter in your Form.
The static modifier makes the variable common to all Form1 instances.
Then in the Form Load event you increase the counter and format the number as you wish.