Over Killer
Over Killer

Reputation: 513

Is that possible to preload existing program?

I'm working at touch Awesomium-based web brower. I have to use Windows 8 touch keyboard as main browser keyboard. I'm starting process named tabtip.exe:

 System.Diagnostics.Process.Start("C:\\Program Files\\Common Files\\microsoft shared\\ink\\tabtip.exe");

Is possible to preload that app to make it starting faster?

Upvotes: 0

Views: 393

Answers (1)

Sheridan
Sheridan

Reputation: 69959

There is no functionality in a WPF Application that would enable you to call any code before the Framework has been loaded. Normally, your earliest possible opportunity to call the Process.Start method would be in the MainWindow.xaml.cs constructor.

However, you could possibly cheat a little, depending on how important this requirement is for you. It is possible to open another Window other than the MainWindow (such as a splash screen) and then when you're ready and the external program has been started, open MainWindow.

If you're interested in this suggestion, please take a look at my answer to the How to open a child Window like a splash screen before MainWindow in WPF? question, which will guide you through that process.

Upvotes: 0

Related Questions