Hello,
Can someone help me how i can convert this code to vb.net
private void TimerWacher_Tick(object sender, EventArgs e)
{
try
{
Thread PCResorceUsageThread = new(() =>
{
int CurrentRamUsage = SystemWatcher.TotalRam() - SystemWatcher.CurentPcRamUsage();
PCResorcePbarRAM.Maximum = SystemWatcher.TotalRam();
PCLoginPbarRAM.Maximum = CurrentRamUsage;
PCWorldPbarRAM.Maximum = CurrentRamUsage;
PCWorldPbarRAM.Value = SystemWatcher.ApplicationRamUsage("");
PCResorcePbarRAM.Value = CurrentRamUsage;
PCResorcePbarCPU.Value = SystemWatcher.MachineCpuUtilization();
});
PCResorceUsageThread.Start();
}
catch
{
}
}