[C#]실행 파일을 최상단에 표시하기 위한 예제 가끔 개발하다보면 프로그램이 항상 활성화 되어야 하는 경우가 있습니다. 아래의 예제는 타이머를 이용하여 프로그램 비활성화 되었을 경우 활성화 시키는 예제입니다. using System.Runtime.InteropServices; [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern IntPtr FindWindow(string strClassName, strin.. C# 2016.01.28
[C#/PDA]작업표시줄(Taskbar) 활성화/비활성화 예제 PDA 프로그램을 개발하다보면 화면 사이즈때문에 또는 여러이유로 인해 작업표시줄을 비활성화 해야하는 경우가 종종 있습니다. 그럴때 사용 할 수 있는 API 및 예제 코드이오니 참고하세요... [DllImport("coredll.dll", SetLastError = true)] public static extern IntPtr FindWindow(string caption, string className); [Dll.. C# 2016.01.28
[C#/PDA]MessageBox Auto Closing .net compact framework을 이용한 PDA 프로그램 개발에서 메시지 박스를 특정한 시간이 지나면 자동으로 종료되는 샘플 코드입니다. public class AutoClosingMessageBox { System.Threading.Timer _timeoutTimer; string _caption; AutoClosingMessageBox(string text, string caption, int timeout) { _caption = caption; _timeoutTimer = new System.Threadin.. C# 2016.01.18