Hi ,
Working on a application , where i have two pages in my application : sale and purchase . I need to find out on which form i was working before closing the application , so that it can be the starting form of my application at run time . For example , if i was working on sale page and then i closed the application , then on next start of my application , sales should be opened first .
if () // if last page closed was sale
{
this.BackColor = Color.FromArgb(227, 220, 192);
this.VoucherType.Text = "Sales";
this.label1.Text = "Reference no.:";
label2.Hide();
textBox2.Hide();
}
else if () // if last page closed was purchase
{
this.BackColor = Color.FromArgb(250, 43, 198);
this.VoucherType.Text = "Purchase";
this.label1.Text = "Supplier Invoice no.:";
label2.Show();
textBox2.Show();
}