469,645 Members | 1,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

how can i bring back a program when another closes

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
1 1170
113 100+

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.

Similar topics

1 post views Thread by Eric Whittaker | last post: by
reply views Thread by ACaunter | last post: by
5 posts views Thread by Iain Bishop | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.