Sub Main() If App.PrevInstance Then MsgBox " My Application is Already Running ", _ vbApplicationModal & vbOKOnly & vbExclamation, "Error" AppActivate "My Application" Exit Sub End If Form1.Show End Sub in my vb application, i have the code above to prevent the system to launch multiple instances of the application, it works fine if the app is in its normal size, but when it is minimized, it will not bring it to the front. also, how to make the mesage box modal to my application, the constant vbApplicationModal does not seem to do the job any help will be greatly appreciated. TIA mark