how can i bring back a program when another closes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robc2236
    New Member
    • Feb 2010
    • 1

    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
  • alexis4
    New Member
    • Dec 2009
    • 113

    #2
    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.

    Code:
    this.WindowState = FormWindowState.Maximized;   //maximize 
    this.FormBorderStyle = FormBorderStyle.None;    //full screen

    Comment

    Working...