hi
i want to select an open window to be in front and close,maximize,minimize by C# code something like switch application in window recognition
(the only code i have found to close or maximize is by choosing the process, i don't want that )
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 29, 2013, 11:32 PM
hi,
you can select your existing form from Application.OpenFormscollection by from name.
Form2 newform = (Form2)Application.OpenForms["Form2"];
and you can perform option on same.
newform.Close();
hope this will help you.