CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: How to close another program with C#

    Quote Originally Posted by Arjay
    When you ask help from a programming forum, there are a few basics you need to know.

    1) Describe the code
    2) Describe the problem
    3) Include any relevant code snippets
    4) Include any specific errors

    We can't help you if you don't tell us what the specific error message is.
    I really want to Add Silverfire Please:

    USE CODE TAGS
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  2. #32
    Join Date
    Sep 2008
    Posts
    16

    Re: How to close another program with C#

    I am moved to know of your attempts, I have got to leave for home to climb the coconut tree for coconuts now.

    Yes a code tag looks like the color tags I have added in to indicate the purple. [Purple makes me really sad], I don't give purple yam soup any more ingredients. Promise you Ali

  3. #33
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: How to close another program with C#

    Quote Originally Posted by Pimpya
    I am moved to know of your attempts, I have got to leave for home to climb the coconut tree for coconuts now.

    Yes a code tag looks like the color tags I have added in to indicate the purple. [Purple makes me really sad], I don't give purple yam soup any more ingredients. Promise you Ali
    ?? Regarding CodeTags They are not Colortags Look at the bottom of my post or read the forum rules and you will see how they work.
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  4. #34
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to close another program with C#

    Quote Originally Posted by Pimpya
    I am moved to know of your attempts, I have got to leave for home to climb the coconut tree for coconuts now.
    Don't fall out of the tree.

  5. #35
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: How to close another program with C#

    just wondering if anybody else noticed that the original post was from over 5 years ago?

  6. #36
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to close another program with C#

    Quote Originally Posted by eclipsed4utoo
    just wondering if anybody else noticed that the original post was from over 5 years ago?
    Yes, but when people are falling out of trees, does it really matter?

  7. #37
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: How to close another program with C#

    Quote Originally Posted by eclipsed4utoo
    just wondering if anybody else noticed that the original post was from over 5 years ago?
    Therefore I adressed to Silverfire who obviously took the old thread to revived the old thread for his own question. He's the new requester obviously in my eyes. Pimpis falling out of the tree because of looking for coconuts are only funnysideeffects
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  8. #38
    Join Date
    Jan 2006
    Posts
    2

    Re: How to close another program with C#

    Quote Originally Posted by session
    lol naw, i wanna write a program that will shut down my computer after say 60 mins so my computer will shut down after i go to sleep!
    For this, You dont even need a C# program. You may do a task scheduler with a command as follows:
    Steps:
    [Win] | [Control Panel] | [Scheduled Tasks] | [File\New\Scheduled Task]
    Under Run, key in this
    C:\WINDOWS\system32\shutdown.exe -s -f

    Under Start in, key in this
    C:\WINDOWS\system32

    You can then set the scheduled task to run at the time you want it to run. Voila! Your system will shutdown when you are having a sweet dream.

Page 3 of 3 FirstFirst 123

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

Featured