2009年9月7日

winform 禁用最大化最小化和关闭按钮

摘要: 不能使用最大化窗口:MaximuzeBox 设为False不能使用最小化窗口:MinimizeBox 设为False不能使用红叉关闭using System.Runtime.InteropServices; [DllImport("user32.dll")] internal static extern IntPtr GetSystemMenu(IntPtr hwnd, bool bRevert)... 阅读全文

posted @ 2009-09-07 16:49 Master zhu 阅读(2208) 评论(0) 推荐(0) 编辑

ShowDialog Show

摘要: ShowDialog()会使当前程序暂停 直到关闭当前窗体后才能执行下面的代码Show() 并不会是当前程序暂停 窗体显示后继续执行下面的代码 阅读全文

posted @ 2009-09-07 08:36 Master zhu 阅读(183) 评论(0) 推荐(0) 编辑

导航