if (textBox1.Text =="") { MessageBox.Show("Please Enter Value ","Error"); textBox1.Focus(); } else { using (SaveFileDialog sv = new SaveFileDialog() { Filter = "JPEG|.jpg", ValidateNames = true }) { if (sv.ShowDialog() == DialogResult.OK) { MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder(); encoder.QRCodeScale = 8; string encoding="UserName : " + textBox1.Text + "\r\n" + "CardNo : " + textBox2.Text + "\r\n" + "Address:" + textBox3.Text + "\r\n"+textBox5.Text; Bitmap bmp = encoder.Encode(encoding); pictureBox1.Image = bmp; bmp.Save(sv.FileName, ImageFormat.Jpeg); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)