>Hi Phil,
>
>I am running forms by form object references. Now it allows user to open same form multiple times.
>
>What I am trying to do is,
>When the user click a menu button to enter a new telephone message for someone. If there is a blank form already opened by the user and minimized. I want to bring that existsing form back to the screen without opening a new form.
>
>This form has to be blank(user has not attempted to enter data to the form), if the user is half way done with entering data in a form and it is minimized, this form is not a blank form. Because user might complete it later and save it.
>
>If it is not a blank from, I don't want to bring it back to the screen.
>
>if there is a form minimized and that form is blank and user attempt to click the menu button to open a new form then I want to bring that minimized form to the screen without opening a another new blank form for user to enter a new message.
>
>I hope it is clear to you now.
>
>Thank you Phil.
Hi Lal,
OK, so all you really need to do is store the list of form object references somewhere, like in a array, perhaps.
Then when the user attempts to open a form, iterate through all of the current opened forms vis the form object reference list. For each form, check to see if it is minimized (via the form WindowState property, ie: if form.WindowState = 1). If so, check the current control(s), if empty, restore the form to default state (form.WindowState = 0).