Anyone here know the code to view the cpu/ram usage at anytime? Yeah, I know its in the task manager but I want to create a small form and place it on my desktop.

why not you use SHELL to call the exe of taskmanager it self and display it in side your application.

No, it won't do. I want a form to display only the cpu and ram usage. It would be an eyesore if it also displays processes that use them. Thanks for the reply btw.

Hi,

u have to use "PSAPI.dll"
Process Status API.
Check the Code here
DownLoad from "EnumerateProcess"

Regards
Veena

Thanks. I'll be checking on this when I have time.

No luck so far.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.