using System.Runtime.InteropServices;

[DllImport("User32.dll")]
public static extern int GetSystemMenu(int hWnd, int bRevert);

[DllImport("User32.dll")]
public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);

private void yourform_Load(object sender, System.EventArgs e)
{
    int lSysMenu;
    const int  MF_BYPOSITION = 1024;
    lSysMenu = GetSystemMenu(this.Handle.ToInt32(), 0);
    RemoveMenu(lSysMenu, 6, MF_BYPOSITION);
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-10-19
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案