Process Component %& focus

M

Mex

Hi

Im using a Process component to run external application (FineOCR.exe)
In StarInfo i set theProcess.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;

When the process is started main window looses focus, can this be avoided?
Problem is, when my app. must process many files using fineocr.exe, main
window "flashes"
and i cant use any other application, because the fineocr takes focus, even
when windowstyle is set to Hidden.


best regards;
Mex
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Did you try to spawn the process from a backgroudn thread?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top