I want to know what is the code used to generate serial number a 14-digits
please don't be late to respond to me
thank you very much
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted May 25, 2010, 12:36 AM
private void button1_Click(object sender, EventArgs e)
{
Random r = new Random();
string serial = "";
for (int i = 0; i < 14; i++)
{
serial += Convert.ToChar(r.Next(65, 90)).ToString();
}
textBox1.Text = serial;
}
GustavoPosted May 24, 2010, 9:26 PM
You want a Serial Number that is 14 digits?
Dont you have to get the starting number from somewhere?
Then you just increment it and save it somewhere.
I think you need to explain more on what you need.
MeshaPosted May 25, 2010, 8:38 AM
thank you for your cooperation
CrishPosted May 25, 2010, 1:39 AM
pl go through below link for you solution
http://www.c-sharpcorner.com/UploadFile/mahesh/RandomNumber11232005010428AM/RandomNumber.aspx
Don't forget to Mark Do you like this Answer that solved your problem!