Winforms Open Last Closed Form
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....
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.
精彩评论