This project is read-only.

createNoWindow still creates a window

Sep 10, 2010 at 7:06 PM
Edited Sep 10, 2010 at 7:33 PM


I'm developing an application, where I start another application I'm automating, I'm fully handling it and user interference would be a problem so I would like it to be hidden. Not to talk about the many dialogs popping up, which is really annoying. A tried createNoWindow, and other processStartInfo parameters but none of them seems to work with the White.Core.Application. Here's my code:

ProcessStartInfo meGuiSI = new ProcessStartInfo(Config.MeGUIPath);
if (! Config.OpenWindow)
    meGuiSI.UseShellExecute = false;
    meGuiSI.WindowStyle = ProcessWindowStyle.Hidden;
    meGuiSI.CreateNoWindow = true;
Application meGui = Application.Launch(meGuiSI);

Where Config is a class with my configuration data. In case that there was a discussion about this already, take my apology, I was searching for it for an hour now, and haven't found anything.