First Window code for button click
SecondWindow rfisreport = new SecondWindow();
rfisreport.Parent = this;
this.Hide();
rfisreport.Show();
Second Window Code
public FirstWindow Parent;
protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
if(Parent!=null)
{
Parent.Show();
}
}
SecondWindow rfisreport = new SecondWindow();
rfisreport.Parent = this;
this.Hide();
rfisreport.Show();
Second Window Code
public FirstWindow Parent;
protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
if(Parent!=null)
{
Parent.Show();
}
}
No comments:
Post a Comment