How To
How to get CPU temperature in C#
By Tan Lee Published on Jul 01, 2024 1.42K
To get the CPU temperature in C#, you can use WMI (Windows Management Instrumentation) to query sensor data.
How to run powershell commands in C#
By Tan Lee Published on Jul 06, 2024 1.41K
You can run PowerShell commands in c# by using the System.Management.Automation namespace, which provides classes for interacting with PowerShell from managed code.
How to use InputSimulator in C#
By Tan Lee Published on Feb 15, 2025 508
If you’re a C# developer working with WinForms, you may have encountered the need to simulate key presses programmatically.
Registering Global Hotkeys in WinForms
By Tan Lee Published on Feb 15, 2025 355
In WinForms applications, global hotkeys allow you to register keyboard shortcuts that work system-wide, even when your application is not in focus.
How to implement Sciter in C#
By Tan Lee Published on Feb 15, 2025 191
Learn how to integrate and set up Sciter, a lightweight HTML and CSS UI engine, in your WinForms application.
Hiding Data in Images Using Steganography in C#
By Tan Lee Published on Feb 15, 2025 287
Steganography is the technique of hiding data within files, such as images, to create "stegotext."
How to access a SFTP server using SSH.NET in C#
By Tan Lee Published on Feb 15, 2025 589
To access an SFTP server using SSH.NET in C#, you need to follow these steps:
Current Thread Must Be Set to Single Thread Apartment (STA) Mode
By Tan Lee Published on Feb 15, 2025 340
To resolve the C# exception: "Current thread must be set to single thread apartment (STA) mode before OLE calls can be made," follow these steps:
How to Identify the Antivirus Software Installed on a PC Using C#
By Tan Lee Published on Feb 15, 2025 224
To identify the antivirus software installed on a PC using C#, you can query Windows Management Instrumentation (WMI) for the relevant information. Specifically, you can access the AntiVirusProduct class in the Security Center API to retrieve details about the installed antivirus.
What is Hoisting in JavaScript
By Tan Lee Published on Feb 14, 2025 139
Hoisting in JavaScript is a behavior where declarations (of variables and functions) are moved to the top of their containing scope during the compilation phase, before the code is executed.
How to get the client IP address in Javascript
By Tan Lee Published on Feb 14, 2025 207
In JavaScript, retrieving a user's IP address directly is not possible due to security restrictions.
How to define a monitor as the primary display in C#
By Tan Lee Published on Feb 14, 2025 258
In this article, I'll walk you through how to dynamically change the primary display on Windows 10 using C# in a WinForms application.