public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SecondForm = new ResultOfBMICalculator(); FirstForm = new BMICalculator(); SplashHome = new SplashHomeScreen(); Application.Run(SplashHome); }
/* *<summary> If user click ResetButton, SplashFormScreen shows up and Numbers in TextBox become Zero * <summary> * @method ResetButton_Click * @property {void} */ private void ResetButton_Click(object sender, EventArgs e) { // make instance of SplashHomeScreen which shows up if user enters the ResetButton SplashHomeScreen Splash = new SplashHomeScreen(); this.Hide(); Splash.Show(); HeighttextBox.Text = "0"; WeighttextBox.Text = "0"; this.HeightDecimal = false; this.WeightDecimal = false; this.ActiveError = false; }