By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

how can i bring back a program when another closes

P: 1
ok i am making a program to manage my mame roms that runns in fullscreen the problem is when i play a rom from it my program minimizes and stays minimized even when mame has closed is there any way i can add some code to my prgram so when mame closes for my program to go back to fullscreen automatically
Feb 17 '10 #1
Share this Question
Share on Google+
1 Reply


alexis4
100+
P: 113
Hi!

If you open mame as a Process from your application, then check out the HasExited property and mainly the Exited event.
When the event comes you can then maximize your form.

Expand|Select|Wrap|Line Numbers
  1. this.WindowState = FormWindowState.Maximized;   //maximize 
  2. this.FormBorderStyle = FormBorderStyle.None;    //full screen
Feb 18 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.