I have not yet been able to see a workable solution for this problem.
I have an external application that launches an outlook compose window, and I want to make sure it always pop up in front. It does not all the time. E.g. if I tab to Outlook and then back to the application and launch the task, it will just blink in the bottom.
I've tried several suggestions with getinspector.Active() etc. but nothing works.
Some sample code:
String address = "someone@example.com";
Outlook.Application oApp = new Outlook.Application();
Outlook._MailItem oMailItem = (Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMailItem.To = address
oMailItem.Body = "example";
oMailItem.Display(true); //true = modal which I need for this task, have tried without also.
similar thread but with Delphi code that I do not know how to translate into c#