views:

70

answers:

1

Hello there..

How do i Re-Open Previously Closed Form.

Like I have Form 1 and Form 2 and Form 3

Previously I have opened Form 1 and 2 and Closed them

then How do i track that previously i have Closed Form 1 and Form 2

anyone who face similar issue and have the solution please Help....

+1  A: 

I've solved this task by subscribing on "OnClose" event and saving information about this form into Closed Forms Stack. When you need to re-open recently closed form, you just pop the your stack and create just gotten form. Hope it will help, if you need I can provide a code sample.

Restuta
I have Got u but can you please put some code for better clarificationwith how to store information of form into the stack..
Sameep
You can do this by saving form name (the easiest way) and by saving reference to the form, but in this case you shouldn't close forms but just hide them.
Restuta