public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
r1
.FormClosing += new FormClosingEventHandler
(SeCierra3
); r1.Show();
}
private void SeCierra3(object sender, EventArgs e)
{
r1
.FormClosing += new FormClosingEventHandler
(SeCierra4
); r1.Size = ((Form)sender).Size;
r1.Location = ((Form)sender).Location;
r1.Show();
}
private void SeCierra4(object sender, EventArgs e)
{
r1
.FormClosing += new FormClosingEventHandler
(SeCierra3
); r1.Size = ((Form)sender).Size;
r1.Location = ((Form)sender).Location;
r1.Show();
}
private void Form2_Shown(object sender, EventArgs e)
{
this.Visible = false;
}
}