[2005] Call windows components (XP Calculator And Touch Keyboard
Can anyone tell me how to call the Windows XP Calculator and the Touch Keyboard from you own application. And how to close one of these components!
Thanx
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Call calc.exe for the calculator and osk.exe for the keyboard.
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
How do you call these exe files?
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
You can use System.Diagnostics.Process.Start and Kill.
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
You can also use the shell command
Shell("C:\Windows\System32\Calc.exe", AppWinStyle.NormalFocus)
Hope this helps
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Quote:
Originally Posted by Clanguage
You can also use the shell command
Shell("C:\Windows\System32\Calc.exe", AppWinStyle.NormalFocus)
Hope this helps
I would stay away from this one, the Process class gives you far more control over things
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Hi JuggaloBrotha
It's just a DOS call with no side effect that I know of. I do not see any harm using it for a calculator app.
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Quote:
Originally Posted by Clanguage
Hi JuggaloBrotha
It's just a DOS call with no side effect that I know of. I do not see any harm using it for a calculator app.
For a calculator app, it doesn't matter what call you use. I only posted my "warning" because the original poster may pick up the habit of using shell all the time and there may be a scenario where shell just doesn't cut it.
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
I have to agree, I always avoid shells. I avoid it so much, I haven't been to the beach in years! :afrog: