Click here to Skip to main content
15,904,153 members
Home / Discussions / C#
   

C#

 
QuestionHow to add the data from list to a class objects Pin
Rocky2329-Apr-11 0:59
Rocky2329-Apr-11 0:59 
QuestionRemoving "Back-Slash \" from string Pin
M Riaz Bashir28-Apr-11 23:09
M Riaz Bashir28-Apr-11 23:09 
AnswerRe: Removing "Back-Slash \" from string Pin
loveangel88828-Apr-11 23:15
loveangel88828-Apr-11 23:15 
GeneralRe: Removing "Back-Slash \" from string Pin
M Riaz Bashir28-Apr-11 23:23
M Riaz Bashir28-Apr-11 23:23 
GeneralRe: Removing "Back-Slash \" from string Pin
Richard MacCutchan29-Apr-11 0:46
mveRichard MacCutchan29-Apr-11 0:46 
AnswerRe: Removing "Back-Slash \" from string Pin
Blue_Boy28-Apr-11 23:18
Blue_Boy28-Apr-11 23:18 
AnswerRe: Removing "Back-Slash \" from string PinPopular
David198729-Apr-11 1:30
David198729-Apr-11 1:30 
AnswerRe: Removing "Back-Slash \" from string Pin
Prasanta_Prince29-Apr-11 5:49
Prasanta_Prince29-Apr-11 5:49 
AnswerRe: Removing "Back-Slash \" from string Pin
wizardzz29-Apr-11 7:23
wizardzz29-Apr-11 7:23 
QuestionBinding a Method Pin
dbongs28-Apr-11 21:52
dbongs28-Apr-11 21:52 
AnswerRe: Binding a Method Pin
Pete O'Hanlon28-Apr-11 23:03
mvePete O'Hanlon28-Apr-11 23:03 
GeneralRe: Binding a Method Pin
dbongs28-Apr-11 23:14
dbongs28-Apr-11 23:14 
GeneralRe: Binding a Method Pin
Pete O'Hanlon29-Apr-11 2:32
mvePete O'Hanlon29-Apr-11 2:32 
QuestionFileUpload Component question. Pin
buffering8328-Apr-11 19:38
buffering8328-Apr-11 19:38 
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 

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.