private void button3_Click(object sender, EventArgs e) { this.Hide(); Top3FRM CV = new Top3FRM(); CV.Show(); }
private void button2_Click(object sender, EventArgs e) { Top3FRM tp = new Top3FRM(); conversion = DGVehiculos.CurrentRow.Cells[2].Value.ToString(); conversion1 = DGVehiculos.CurrentRow.Cells[3].Value.ToString(); conversion2 = DGVehiculos.CurrentRow.Cells[4].Value.ToString(); conversion3 = DGVehiculos.CurrentRow.Cells[5].Value.ToString(); conversion4 = DGVehiculos.CurrentRow.Cells[6].Value.ToString(); conversion5 = DGVehiculos.CurrentRow.Cells[7].Value.ToString(); //conversion4 = dg texToQr.Text = $"{conversion}\r\n{conversion1}\r\n{conversion2}\r\n{conversion3}\r\n{conversion4}\r\n{conversion5}\r\n{conversion6}"; QRCodeGenerator qrGenerator = new QRCodeGenerator(); QRCodeData qrCodeData = qrGenerator.CreateQrCode(texToQr.Text, QRCodeGenerator.ECCLevel.Q); QRCode qrCode = new QRCode(qrCodeData); CodigoQRFRM code = new CodigoQRFRM(); code.Show(); code.pk1.Image = qrCode.GetGraphic(5); this.Close(); }