I have to run some other application from my program and hide it’s form. In Windows XP it was easy:
ShellExecute(Handle, 'open', 'foo.exe', nil, nil,SW_HIDE);
But it seems that it doesn’t work anymore in Vista and win7.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, at least
appears to work as one would expect. I do not have a Windows XP machine available, but exactly what happened on XP? If i run
in Windows 7, a notepad.exe process is created, but no window is shown. I guess that the window is created but now shown, as is what one might expect, actually. You can probably show the window later on by using the FindWindow and ShowWindow functions.
Update:
I just confirmed my hypothesis:
displays the newly created window (with title “Namnlös – Anteckningar”, i.e. “New file – Notepad” in Swedish).
Update 2:
Notice that