相关文章推荐
坚强的机器猫  ·  emacs-shell - ...·  1 年前    · 
内向的馒头  ·  How do I mount a host ...·  1 年前    · 
奔放的针织衫  ·  关于 PowerShell exe - ...·  1 年前    · 

private void WWUserName_Load(object sender, EventArgs e)
{
MySDK01.SetMid(this);
SetTextBoxUserNameState(false);


// 方法1
this.ControlBox = false;

// 方法2
this.MaximizeBox = false;
this.MinimizeBox = false;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
int hMenu = WinApi.GetSystemMenu(this.Handle.ToInt32(), 0);
WinApi.RemoveMenu(hMenu, WinApi.Menu_Position.SC_CLOSE, WinApi.Menu_Flags.MF_REMOVE);