Click here to Skip to main content
15,896,437 members
Home / Discussions / C#
   

C#

 
AnswerRe: FileUpload Component question. Pin
dan!sh 28-Apr-11 20:04
professional dan!sh 28-Apr-11 20:04 
AnswerRe: FileUpload Component question. Pin
Pete O'Hanlon28-Apr-11 21:00
mvePete O'Hanlon28-Apr-11 21:00 
AnswerRe: FileUpload Component question. Pin
dbongs28-Apr-11 21:54
dbongs28-Apr-11 21:54 
QuestionHow to print a file (word doc, pdf or infopath form) from a URL using code? Pin
bin_bin128-Apr-11 19:21
bin_bin128-Apr-11 19:21 
AnswerRe: How to print a file (word doc, pdf or infopath form) from a URL using code? Pin
_Erik_29-Apr-11 3:41
_Erik_29-Apr-11 3:41 
QuestionListing information of backgroud process Pin
sarang_k28-Apr-11 19:01
sarang_k28-Apr-11 19:01 
AnswerRe: Listing information of backgroud process Pin
CodingLover28-Apr-11 19:23
CodingLover28-Apr-11 19:23 
AnswerRe: Listing information of backgroud process Pin
ambarishtv29-Apr-11 23:05
ambarishtv29-Apr-11 23:05 
Hi.. try this code.. Smile | :)

using System;
using System.Diagnostics;

class MainClass
{
   public static void Main()
   {
      Process[] allProcs = Process.GetProcesses();

      foreach(Process proc in allProcs)
      {
         ProcessThreadCollection myThreads = proc.Threads;
         Console.WriteLine("process: {0},  id: {1}", proc.ProcessName, proc.Id);

         foreach(ProcessThread pt in myThreads)
         {
            Console.WriteLine("  thread:  {0}", pt.Id);
            Console.WriteLine("    started: {0}", pt.StartTime.ToString());
            Console.WriteLine("    CPU time: {0}", pt.TotalProcessorTime);
            Console.WriteLine("    priority: {0}", pt.BasePriority);
            Console.WriteLine("    thread state: {0}", pt.ThreadState.ToString()); 
         }
      }
   }
}

-ambarish-

QuestionMinimizing to system tray causes stack overflow Pin
Helfdane28-Apr-11 12:52
Helfdane28-Apr-11 12:52 
AnswerRe: Minimizing to system tray causes stack overflow Pin
Luc Pattyn28-Apr-11 13:01
sitebuilderLuc Pattyn28-Apr-11 13:01 
GeneralRe: Minimizing to system tray causes stack overflow Pin
Helfdane29-Apr-11 8:35
Helfdane29-Apr-11 8:35 
QuestionGradient Texture with Transparency Pin
BoneSoft28-Apr-11 3:54
BoneSoft28-Apr-11 3:54 
AnswerRe: Gradient Texture with Transparency Pin
BoneSoft28-Apr-11 9:02
BoneSoft28-Apr-11 9:02 
AnswerRe: Gradient Texture with Transparency Pin
Manfred Rudolf Bihy28-Apr-11 12:30
professionalManfred Rudolf Bihy28-Apr-11 12:30 
GeneralRe: Gradient Texture with Transparency Pin
BoneSoft28-Apr-11 16:04
BoneSoft28-Apr-11 16:04 
QuestionHow to list network connections Pin
sarang_k28-Apr-11 0:31
sarang_k28-Apr-11 0:31 
AnswerRe: How to list network connections Pin
Blue_Boy28-Apr-11 3:25
Blue_Boy28-Apr-11 3:25 
GeneralRe: How to list network connections Pin
ambarishtv28-Apr-11 5:16
ambarishtv28-Apr-11 5:16 
AnswerRe: How to list network connections Pin
RaviRanjanKr29-Apr-11 9:03
professionalRaviRanjanKr29-Apr-11 9:03 
QuestionDataset selection question Pin
minnie mouse27-Apr-11 23:34
minnie mouse27-Apr-11 23:34 
AnswerRe: Dataset selection question Pin
Eddy Vluggen28-Apr-11 0:06
professionalEddy Vluggen28-Apr-11 0:06 
GeneralRe: Dataset selection question Pin
minnie mouse28-Apr-11 0:51
minnie mouse28-Apr-11 0:51 
AnswerRe: Dataset selection question Pin
wizardzz28-Apr-11 5:54
wizardzz28-Apr-11 5:54 
GeneralRe: Dataset selection question Pin
minnie mouse28-Apr-11 10:04
minnie mouse28-Apr-11 10:04 
QuestionHow to use c++ dll in c#.net Pin
sarang_k27-Apr-11 23:02
sarang_k27-Apr-11 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.