private void button3_Click(object sender, EventArgs e) { frmLanding landing = new frmLanding(); landing.Show(); Form2 test = this; test.Hide(); }
private void tmrLoading_Tick(object sender, EventArgs e) { /* Checks to see if the loading value is not 10 * if it is timer stops */ bool bFlag = false; if (matpgbLoading.Value != 10) { matpgbLoading.Value++; } else { tmrLoading.Stop(); bFlag = true; } if (bFlag == true) { frmLanding landing = new frmLanding(); frmLoading loading = this; landing.Show(); loading.Hide(); } }