1 2 3 4 5 6 7 8 9
| [DllImport("user32.dll")] public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); var helper = new WindowInteropHelper(this); SetWindowLong(helper.Handle, -20, 0x80); }
|