Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralC# 2.0 Specs and Thoughts on Generics Pin
Heath Stewart26-Oct-03 12:28
protectorHeath Stewart26-Oct-03 12:28 
GeneralRe: C# 2.0 Specs and Thoughts on Generics Pin
jparsons26-Oct-03 14:46
jparsons26-Oct-03 14:46 
GeneralRe: C# 2.0 Specs and Thoughts on Generics Pin
Heath Stewart26-Oct-03 17:26
protectorHeath Stewart26-Oct-03 17:26 
GeneralRe: C# 2.0 Specs and Thoughts on Generics Pin
jparsons28-Oct-03 6:34
jparsons28-Oct-03 6:34 
GeneralRe: C# 2.0 Specs and Thoughts on Generics Pin
jparsons28-Oct-03 6:36
jparsons28-Oct-03 6:36 
GeneralRe: C# 2.0 Specs and Thoughts on Generics Pin
Kevin McFarlane27-Oct-03 5:34
Kevin McFarlane27-Oct-03 5:34 
Generalalot of questions Pin
bora3ee26-Oct-03 12:20
bora3ee26-Oct-03 12:20 
GeneralRe: alot of questions Pin
Heath Stewart26-Oct-03 17:39
protectorHeath Stewart26-Oct-03 17:39 
You really should read the class documentation. ListView subitems are definitely explained clearly enough.

bora3ee wrote:
1- how can i allow columns??...(one column for the process name and one for the memory used and one for the state and so on)all the information about each process is in the same row the row is divided into columns..

Set ListView.View to View.Details. Add columns using the ListView.Columns properties.

bora3ee wrote:
2-i wanna the listbox to disply the changes in the memory used eah 1 sec how can i do it (i tried to redraw the listbox each second but i found it sucks)

You either have to derive from ListView and handle the OCM_NOTIFY messages to have the NM_CUSTOMDRAW notifications, or handle the WM_NOTIFY in the parent of the ListView, handling the specific (and many) NM_CUSTOMDRAW notifications. This requires P/Invoking several Win32 functions from the Platform SDK and redefining a lot of message IDs and structures. This isn't for newbies, but there are lots of tutorials here on CP (which you should always check for first, since that's the whole point of this site).

You can then control which items and subitems are redrawn and when.

bora3ee wrote:
3-i used the following code to display the process name and its state :
private static Process[] processes=Process.GetProcesses();
for(int x=0;xlistBox1.Items.Add(processes[x].ProcessName.ToUpper().ToString()+"\t\t\t"+(processes[x].Responding ?"Running" :"NotResponding"));


??? WTF | :WTF: There's no different in your output. Check your HTML formatting.

bora3ee wrote:
4- how can i display only current applications not processes???

Applications == processes. Please elaborate. If you want to see current Windows applications / processes, you enumerate the processes and check the Process.MainWindowHandle. If it's IntPtr.Zero, it doesn't have a GUI associated with it (no main Window handle). If the return isn't IntPtr.Zero, it's a Windows application.

In the future, it would also be easy to get help if you post these questions as separate posts. You're more likely to get help with at least some of them and it's easier for potential helpers to follow along and reply when necessary.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralSystem.Web.Mail -> missing Pin
totig26-Oct-03 11:13
totig26-Oct-03 11:13 
GeneralRe: System.Web.Mail -> missing Pin
Heath Stewart26-Oct-03 12:11
protectorHeath Stewart26-Oct-03 12:11 
GeneralC# Class Library and VS.NET standard Pin
ewan26-Oct-03 8:18
ewan26-Oct-03 8:18 
GeneralRe: C# Class Library and VS.NET standard Pin
Blake Coverett26-Oct-03 8:28
Blake Coverett26-Oct-03 8:28 
GeneralRe: C# Class Library and VS.NET standard Pin
ewan26-Oct-03 8:36
ewan26-Oct-03 8:36 
GeneralRe: C# Class Library and VS.NET standard Pin
Blake Coverett26-Oct-03 8:43
Blake Coverett26-Oct-03 8:43 
GeneralRe: C# Class Library and VS.NET standard Pin
ewan26-Oct-03 8:46
ewan26-Oct-03 8:46 
GeneralRe: C# Class Library and VS.NET standard Pin
Heath Stewart26-Oct-03 12:18
protectorHeath Stewart26-Oct-03 12:18 
GeneralRe: C# Class Library and VS.NET standard Pin
ewan26-Oct-03 21:47
ewan26-Oct-03 21:47 
GeneralRe: C# Class Library and VS.NET standard Pin
Heath Stewart27-Oct-03 2:04
protectorHeath Stewart27-Oct-03 2:04 
GeneralRe: C# Class Library and VS.NET standard Pin
J. Dunlap26-Oct-03 9:27
J. Dunlap26-Oct-03 9:27 
GeneralRe: C# Class Library and VS.NET standard Pin
Kevin McFarlane27-Oct-03 5:41
Kevin McFarlane27-Oct-03 5:41 
GeneralRe: C# Class Library and VS.NET standard Pin
John Arlen27-Oct-03 9:17
John Arlen27-Oct-03 9:17 
GeneralFocus and Button :eek: Pin
oOomen26-Oct-03 7:37
oOomen26-Oct-03 7:37 
GeneralRe: Focus and Button :eek: Pin
leppie26-Oct-03 10:33
leppie26-Oct-03 10:33 
GeneralRe: Focus and Button Pin
oOomen26-Oct-03 20:29
oOomen26-Oct-03 20:29 
GeneralCommand Promt window Pin
livss26-Oct-03 3:26
livss26-Oct-03 3:26 

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.