摘要: 实际项目开发过程中,我们可能需要将Form窗口的最大化按钮禁用掉。1。设定系统菜单首先在窗体类中声明:public class Form1 : System.Windows.Forms.Form{[DllImport("user32.dll",EntryPoint="GetSystemMenu")] //导入API函数extern static System.IntPtr GetSystemMenu(System.IntPtr hWnd , System.IntPtr bRevert);[DllImport("user32.dll", 阅读全文
posted @ 2011-12-05 16:28 大佛张 阅读(1390) 评论(0) 推荐(0) 编辑