Tạo 1 Form với giao diện tuỳ ý nhưng phải có các điều khiển sau :
- ProgressBar
- PerformanceCounter
- Timer
PerformanceCounter(Properties)
PerformanceCounter1 :
CategoryName : Processor
CounterName : % Processor Time
InstanceLifetime : Global
InstanceName : _Total
Timer(Properties)
Timer1 :
Enabled : True
Interval : 1000
Mấy cái khác để nguyên
Và code
Visual C# Code:
namespace CpuUsage { { { InitializeComponent(); } { label1.Text = "Đã xử dụng: " + } } }
Xong Debug ra chạy thử, xem kết quả
Đã được chỉnh sửa lần cuối bởi phanvankhai : 07-06-2007 lúc 09:38 PM.
hoan hô, cái này hay đấy. Bác nói rõ hơn một chút được ko?
Việt Nam quang vinh muôn năm!!!!!!!!!!!!