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

C# Tutorial – Create CPU & Memory Monitor with Real Time Charts | FoxLearn

28 thoughts on “C# Tutorial – Create CPU & Memory Monitor with Real Time Charts | FoxLearn

  • April 11, 2017 at 4:21 pm
    Permalink

    thanku can u add cpu temperature

    Reply
  • April 11, 2017 at 8:36 pm
    Permalink

    best channel to learn c#

    Reply
  • April 12, 2017 at 2:50 am
    Permalink

    you are the best one in this world 👏👏💜

    Reply
  • April 12, 2017 at 8:17 am
    Permalink

    very nice tutorial, thank you very much 🙂

    Reply
  • April 12, 2017 at 9:39 pm
    Permalink

    please!!! asp mvc with Firebase. 🙂

    Reply
  • April 13, 2017 at 9:40 am
    Permalink

    What is the categoryName properties are no memory and processor?

    Reply
  • April 13, 2017 at 5:17 pm
    Permalink

    Please! Gpu monito

    Reply
  • April 25, 2017 at 12:05 am
    Permalink

    good video. I would like to see some where you make a query in the database and appear "wait please" and until you finish loading the Metrogridview

    Reply
  • April 25, 2017 at 10:55 am
    Permalink

    After install the component, I haven't Metro tools in the ToolBox. MetroLabel and Metro ProgressBar doesn't appears.
    I'm using VS 2015

    Reply
  • April 26, 2017 at 3:57 pm
    Permalink

    hao do you generate the audio?

    Reply
  • May 6, 2017 at 11:16 pm
    Permalink

    very absoluty excelent!

    Reply
  • May 22, 2017 at 11:49 pm
    Permalink

    we need cod source for learn the more

    Reply
  • June 8, 2017 at 11:07 am
    Permalink

    Thank you !!!!!

    Reply
  • June 9, 2017 at 4:32 am
    Permalink

    Please make gpu temperature

    Reply
  • July 26, 2017 at 2:37 pm
    Permalink

    i dont find a metro label , metro progrss bar how can i find them?

    Reply
  • November 4, 2017 at 10:28 pm
    Permalink

    This code Work on windows7? i can't find MetreFrame work

    Reply
  • January 31, 2018 at 3:46 am
    Permalink

    Why am i facing an error in Designer Page ?

    Reply
  • June 4, 2018 at 12:00 pm
    Permalink

    good work , thank you for this

    Reply
  • July 7, 2018 at 9:36 am
    Permalink

    Hey Lucy, please tell people what does happen when each line is typed. Show errors which will occur when some of the codes are not there! Then videos will be more and more interesting and helpful for the people.
    There are many subscribers for your channel. But the general idea being that those are some people who wants to know the source codes of those programs. And they won't be creating a new app using the programming skills. So please try to make an explanation in your video.

    Take this as a request. And if you do like that you can even attract more visitors. Thank you.

    Reply
  • September 9, 2018 at 4:14 pm
    Permalink

    thank you

    Reply
  • September 23, 2018 at 3:30 pm
    Permalink

    Please explain the relationship between the timer and performance counters, and how that could change.

    Reply
  • October 24, 2018 at 1:10 pm
    Permalink

    When I click items "CategoryName" and "CounterName" they doesn't contains any subitems (like "Memory" and "% Committed In Use").
    Could you suggest me how to fix it?

    Reply
  • December 22, 2018 at 12:40 pm
    Permalink

    Great Video! I am really interested in this project and I would like to push this project further. Here, it shows the cpu usage of the system but in resource monitor, we can get the individual applications CPU usage. How can I reproduce the same thing in the form of a chart in here too?

    Reply
  • January 23, 2019 at 11:16 am
    Permalink

    Unfortunately GUI dependent (Windows.Forms).
    Windows.Forms is currently outdated.
    The successor is WPF but Microsoft will supersede it with UWP.
    A GUI independent solution is to use the Windows API!

    So you can write a own class library withe own C# functionality wich will call the Winows API to get the hardware infromation.
    Then you can build Controler/ViewModels (MVC or MVVM) to send it to your View.

    Reply
  • January 31, 2019 at 1:13 am
    Permalink

    Gracias miss…. muy agradecido

    Reply
  • February 23, 2019 at 6:56 pm
    Permalink

    how can i add CPU temperature

    Reply
  • July 11, 2019 at 8:13 pm
    Permalink

    Omg I got an error, and I can't find it so dumb wtf

    Reply
  • September 4, 2019 at 5:04 pm
    Permalink

    seriusly peformance counter spitting errors! System.InvalidOperationException: 'Category does not exist.'
    and many more cs errors

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *