المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Switching a program from foreground to background



C# Programming
06-27-2010, 12:52 PM
I'm working on a program that needs to run in the foreground (so it can hold up a script running until it's done) for the first part of the application, then switch to running in the background for the remainder of its life.

I have tried putting commands before the Application.Run() line, but that didn't work. I also tried changing it to a Command Line application in Visual Studio, but then it didn't go into the background at all.

Is there an easy way of doing this?