Welcome to the FoxLearn
Today we will learn how to create a simple cpu and ram monitor
First, You need to install metro framework from the nuget
Metro Modern UI or MetroFramework brings Windows 8 UI to .NET Windows Forms applications
Open the code behind your Form you wish to skin, then make it inherit from MetroForm
Now, We will design a simple metro UI that allows you to monitor CPU and RAM usage
The PerformanceCounter component can be used for both reading existing predefined or custom counters and publishing performance data to custom counters
To read from a performance counter, create an instance of the PerformanceCounter class, set the CategoryName, CounterName, and
optionally, the InstanceName or MachineName properties, and then call the NextValue method to take a performance counter reading
A Timer is used to raise an event at user-defined intervals
When you use this timer, use the Tick event to perform a polling operation
Whenever the Enabled property is set to true and the Interval property is greater than zero, the Tick event is raised at intervals based on the Interval property setting
You need to add a chart control to form 1. You can view real time CPU and memory usage with the chart control
A series corresponds to a single data set that is displayed as some type of chart in the charting control
The series can be displayed as a line, bars and points
Thank you for watching this video