Click here to Skip to main content
16,015,018 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hey james it didn't work Pin
James T. Johnson21-Apr-02 19:07
James T. Johnson21-Apr-02 19:07 
GeneralRe: Hey james it didn't work Pin
Neil Van Note21-Apr-02 19:12
Neil Van Note21-Apr-02 19:12 
GeneralRe: Hey james it didn't work Pin
James T. Johnson22-Apr-02 21:43
James T. Johnson22-Apr-02 21:43 
GeneralRe: Hey james it didn't work Pin
Neil Van Note23-Apr-02 2:33
Neil Van Note23-Apr-02 2:33 
GeneralRe: Hey james it didn't work Pin
James T. Johnson23-Apr-02 2:38
James T. Johnson23-Apr-02 2:38 
GeneralRe: Hey james it didn't work Pin
Neil Van Note23-Apr-02 3:06
Neil Van Note23-Apr-02 3:06 
Generallist view items Pin
shadowman21-Apr-02 13:25
shadowman21-Apr-02 13:25 
GeneralRe: list view items Pin
James T. Johnson21-Apr-02 13:46
James T. Johnson21-Apr-02 13:46 
The problem you are seeing is because you are only adding the string which represents the process name to the list view, instead you need to add the Process object itself.

private void Form1_Load(object sender, System.EventArgs e)
{
  Process[] MyProcArray = Process.GetProcesses();
  
  foreach (Process MyProc in MyProcArray)
  {
    ProcessesList.Items.Add(MyProc);
  }
}
HTH,

James

Simplicity Rules!
GeneralKeyPress Pin
Mazdak21-Apr-02 7:43
Mazdak21-Apr-02 7:43 
GeneralRe: KeyPress Pin
ez221-Apr-02 7:53
ez221-Apr-02 7:53 
GeneralRe: KeyPress Pin
Mazdak21-Apr-02 7:57
Mazdak21-Apr-02 7:57 
GeneralRe: KeyPress Pin
Mazdak21-Apr-02 8:19
Mazdak21-Apr-02 8:19 
GeneralRe: KeyPress Pin
ez221-Apr-02 8:48
ez221-Apr-02 8:48 
GeneralRe: KeyPress Pin
Rüpel21-Apr-02 20:24
Rüpel21-Apr-02 20:24 
GeneralConnection StringII Pin
Mazdak21-Apr-02 7:38
Mazdak21-Apr-02 7:38 
GeneralRe: Connection StringII Pin
Neil Van Note21-Apr-02 16:08
Neil Van Note21-Apr-02 16:08 
GeneralRe: Connection StringII Pin
Neil Van Note21-Apr-02 16:22
Neil Van Note21-Apr-02 16:22 
GeneralRe: Connection StringII Pin
Mazdak21-Apr-02 19:13
Mazdak21-Apr-02 19:13 
GeneralRe: Connection StringII Pin
Mazdak23-Apr-02 2:20
Mazdak23-Apr-02 2:20 
GeneralRe: Connection StringII Pin
Neil Van Note23-Apr-02 2:37
Neil Van Note23-Apr-02 2:37 
QuestionHow to play WAVE sound from resource? Pin
Szymon Pusz21-Apr-02 5:18
Szymon Pusz21-Apr-02 5:18 
AnswerRe: How to play WAVE sound from resource? Pin
James T. Johnson21-Apr-02 12:10
James T. Johnson21-Apr-02 12:10 
GeneralRe: How to play WAVE sound from resource? Pin
Szymon Pusz22-Apr-02 0:32
Szymon Pusz22-Apr-02 0:32 
GeneralRe: How to play WAVE sound from resource? Pin
Neil Van Note22-Apr-02 5:42
Neil Van Note22-Apr-02 5:42 
GeneralRe: How to play WAVE sound from resource? Pin
Szymon Pusz22-Apr-02 7:20
Szymon Pusz22-Apr-02 7:20 

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.