private void bunifuFlatButton4_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Length < textBox1.MaxLength)
     {
         label1.Visible   = true;
         label1.Text      = @"Invalid Card Number";
         label1.ForeColor = Color.Red;
         label1.Font      = new Font("Helvetica", 7, FontStyle.Bold);
     }
     else
     {
         _instanceOfForm2 = new LiveCardDataPreview
         {
             label9  = { Text = CardNumber },
             label10 = { Text = CardexpMonth },
             label12 = { Text = CardHolderName }
         };
         label1.Visible    = false;
         textBox1.Enabled  = false;
         textBox2.Enabled  = false;
         textBox3.Enabled  = false;
         textBox4.Enabled  = false;
         textBox5.Enabled  = false;
         comboBox1.Enabled = false;
         comboBox2.Enabled = false;
         bunifuFlatButton4.Hide();
         bunifuFlatButton5.Hide();
         CvvNum = textBox3.Text + textBox4.Text + textBox5.Text;
         DateTime oDate   = DateTime.ParseExact(CardexpYear, "yyyy", null);
         var      yearLbl = oDate.ToString("yy");
         _instanceOfForm2.Cvvlbl.Text  = CvvNum;
         _instanceOfForm2.label11.Text = yearLbl;
         var num1        = Regex.Replace(CardNumber, "-", string.Empty);
         var cardNumber1 = Regex.Replace(num1, ".{4}", "$0     ");
         _instanceOfForm2.label5.Text = cardNumber1.Substring(0, 5);
         Hide();
         _instanceOfForm2.ShowDialog();
     }
 }
 public LiveCardInputForm()
 {
     InitializeComponent();
     _instanceOfForm2 = new LiveCardDataPreview();
     textBox1.Enabled = true;
 }