private void button1_Click(object sender, EventArgs e) { form1.SetPin(textBox1.Text); this.Dispose(); }