Hi all,
Iam creating one application where data is save in jpg format with customer name+today datye but problem is when same customer detail im enter previous image is remove i want save data in ajay17-09-2016(1),ajay17-09-2016(2),(3) format
Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height);
Graphics graphics = Graphics.FromImage(bitmap as Image);
graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);
var date = DateTime.Now.ToString("dd-MM-yyyy");
string format = txtname.Text +=date;
bitmap.Save(@"E:\\Project backups\\Medical\\Sales_receipt\\" +format + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
format ="";
this.Close();
Form3 f = new Form3();
f.Show();
Midhun TpPosted Sep 17, 2016, 12:07 AM
Nilesh JadavPosted Sep 16, 2016, 11:03 PM
If it is the database, then by going to the table and it field -- > open its property , there you find "Identity Increment" property just set it, and write this query :
1) http://www.dotnetspider.com/resources/43204-How-create-Alphanumeric-Auto-Increment.aspx
2) http://www.aspdotnet-suresh.com/2012/04/set-custom-auto-generatedincrement.html
3) http://stackoverflow.com/questions/5669198/how-do-i-auto-increment-a-column-in-my-table