غیر فعال کردن دکمه close
using System.Runtime.InteropServices;
private const int a =
0
xF
060
;
private const int b =
0
x
1
;
[DllImport(
"user32.dll"
)]
private
static
extern IntPtr c(IntPtr hWnd, bool bRevert);
[DllImport(
"user32.dll"
)]
private
static
extern int d(IntPtr hMenu, int wIDEnableItem, int wEnable);
private void frmmain_Load(object sender, EventArgs e)
{
d(c(this.Handle, false), a, b);
}
+ نوشته شده در شنبه بیست و پنجم شهریور ۱۳۹۶ ساعت 15:28 توسط محسن
|