I am opening Word from within a Console Application. How can I ensure the Console remains the active window, even after I have shown the Word Application?
using System;
using Microsoft.Office.Interop.Word;
namespace WordDocumentObject {
class Program {
static void Main(string[] args) {
_Application app = new Application();
app.Visible = true;
//Activate the console window here
Console.WriteLine("Press any key to continue...");
Console.ReadKey(true);
}
}
}