|
-
Feb 13th, 2008, 05:27 AM
#1
Thread Starter
Lively Member
[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
-
Feb 13th, 2008, 06:01 AM
#2
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
Call calc.exe for the calculator and osk.exe for the keyboard.
-
Feb 13th, 2008, 06:10 AM
#3
Thread Starter
Lively Member
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
How do you call these exe files?
-
Feb 13th, 2008, 06:52 AM
#4
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
You can use System.Diagnostics.Process.Start and Kill.
-
Feb 13th, 2008, 08:57 AM
#5
Fanatic Member
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
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Feb 13th, 2008, 11:36 AM
#6
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
 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
-
Feb 13th, 2008, 11:40 AM
#7
Fanatic Member
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.
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Feb 13th, 2008, 11:48 AM
#8
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
 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.
-
Feb 13th, 2008, 11:50 AM
#9
Fanatic Member
Re: [2005] Call windows components (XP Calculator And Touch Keyboard
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Feb 13th, 2008, 05:34 PM
#10
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|