task manager

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwdu15

    #1

    task manager

    hi i was wondering how i might go about creating a task manager that shows
    all runnings processes....i checked with

    as stated with an earlier question with this, but it said to reference
    "System.Managem ent" when there is no such class....so if anyone could let me
    kno of any websites etc that could help me out thatd b great
    thanks
    --
    -iwdu15
  • Herfried K. Wagner [MVP]

    #2
    Re: task manager

    "iwdu15" <iwdu15@discuss ions.microsoft. com> schrieb:[color=blue]
    > hi i was wondering how i might go about creating a task manager that shows
    > all runnings processes....i checked with
    > http://www.windowsformsdatagridhelp....8-a07917f8c3e4
    > as stated with an earlier question with this, but it said to reference
    > "System.Managem ent" when there is no such class....[/color]

    Make sure your project contains a reference to "System.Managem ent.dll". To
    add a reference click "Project" -> "Add reference...".

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • iwdu15

      #3
      Re: task manager

      thanks that worked, i put each process in a listcheckbox, so how would i kill
      each process thats checked? like how would i get the process info to kill?

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: task manager

        iwdu15

        There is a lot of information about your question when you search on MSDN on
        "services".

        I thougt that there was also a sample handling this in the 101 VB samples
        that is on MSDN.

        http://www.microsoft.com/downloads/d...displaylang=en

        I hope this helps,

        Cor


        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: task manager

          "iwdu15" <iwdu15@discuss ions.microsoft. com> schrieb:[color=blue]
          > thanks that worked, i put each process in a listcheckbox, so how would i
          > kill
          > each process thats checked? like how would i get the process info to kill?[/color]

          If you are using WMI:

          <URL:http://groups.google.d e/groups?q=dotnet +Win32_Process+ Terminate>

          If you are using 'System.Diagnos tics.Process':

          'Process.CloseM ainWindow', 'Process.Kill'.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...