private void button1_Click(object sender, EventArgs e) { LastForm f = new LastForm(); this.Hide(); f.ShowDialog(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { string x = Public.user.getUsername() + "\n" + textBox1.Text + "\n"; File.WriteAllText(Public.feedbackPath, x); MessageBox.Show("Thankyou for your feedback", ":)"); LastForm f1 = new LastForm(); this.Hide(); f1.ShowDialog(); this.Close(); }