분류 전체보기26 [C#.NET] Laptop Battery 정보 얻기 (Power Status) 프로그램 개발중 현재 시스템의 배터리 상태를 얻고 싶을 때가 있습니다. 이때는 System.Windows.Forms.SystemInformation.PowerStatus을 사용하시면 됩니다. MSDN 내용은 다음의 링크를 참조해 주세요. MSDN PowerStatus SystemInformation.PowerStatus Property (System.Windows.Forms) Gets the current system power status. learn.microsoft.com 제일 먼저 다음을 선언합니다. using System.Windows.Forms; 그리고 SystemInformation.PowerStatus에서 BatteryChargeStatus 값을 확인하면 배터리의 현재 충전 상태를 알아낼 .. 2022. 9. 26. [C# .NET] COM 통신 COM 통신을 위한 클래스에 대한 설명을 기술을 합니다. 여기서는 간단하게 사용하는 예제만 다루며, 좀 더 자세히 다루고자 하시면 해당 클래스에 대한 MSDN의 문서인 다음을 참고하여 작업하시는게 좋을 것 같습니다. https://docs.microsoft.com/ko-kr/dotnet/api/system.io.ports.serialport?view=dotnet-plat-ext-6.0 SerialPort 클래스 (System.IO.Ports) 직렬 포트 리소스를 나타냅니다. docs.microsoft.com 먼저 다음과 같이 System.IO.Ports;를 추가해 줍니다. using System.IO.Ports; 그리고 SerialPort 객체를 만들고 다음과 같인 접속하고자 하는 포트 정보들을 기입합니.. 2022. 9. 21. 이전 1 ··· 4 5 6 7 다음