EnableWindow
EnableWindow - Program(Window)및 특정 Control사용가능여부설정
Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd As Integer, ByVal fEnable As Boolean) As Integer - VB.NET 선언 EnableWindow(Me.Handle, False) 'Windows Form 제어 예제 EnableWindow(Button1.Handle, False) '특정 Control 제어 예제 - VB.NET 호출 [System.Runtime.InteropServices.DllImport("user32.dll")] private static extern int EnableWindow(int hwnd, bool fEnable); - C# 선언 EnableWindow((i..