Results 1 to 10 of 10

Thread: [2005] Call windows components (XP Calculator And Touch Keyboard

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    73

    [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Call windows components (XP Calculator And Touch Keyboard

    Call calc.exe for the calculator and osk.exe for the keyboard.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    73

    Re: [2005] Call windows components (XP Calculator And Touch Keyboard

    How do you call these exe files?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Call windows components (XP Calculator And Touch Keyboard

    You can use System.Diagnostics.Process.Start and Kill.

  5. #5
    Fanatic Member Clanguage's Avatar
    Join Date
    Jan 2008
    Location
    North Carolina
    Posts
    659

    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?

  6. #6
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  7. #7
    Fanatic Member Clanguage's Avatar
    Join Date
    Jan 2008
    Location
    North Carolina
    Posts
    659

    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?

  8. #8
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  9. #9
    Fanatic Member Clanguage's Avatar
    Join Date
    Jan 2008
    Location
    North Carolina
    Posts
    659

    Re: [2005] Call windows components (XP Calculator And Touch Keyboard

    Gotcha
    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?

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width