帮忙解决一下,谢谢! 怎样吧窗体上的那个关闭按钮禁用了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void Form1_FormClosing(object sender, FormClosingEventArgs e){ e.Cancel = true;} 窗体属性ControlBox 改为FALSE.. 不过 窗体属性ControlBox 改为FALSE后 连最小化都没了,怎样保存最小化…… //声明部分 [DllImport("User32.dll")] public static extern IntPtr GetSystemMenu(int hWnd, int bRevert); [DllImport("User32.dll")] public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags); const int MF_REMOVE = 0x1000; const int SC_RESTORE = 0xF120; //还原 const int SC_MOVE = 0xF010; //移动 const int SC_SIZE = 0xF000; //大小 const int SC_MINIMIZE = 0xF020; //最小化 const int SC_MAXIMIZE = 0xF030; //最大化 const int SC_CLOSE = 0xF060; //关闭 Form_Load里 int hMenu; hMenu = GetSystemMenu(this.Handle.ToInt32(), 0); RemoveMenu(hMenu, SC_CLOSE, MF_REMOVE); 怎么把程序中获取的数据存储到app.config中,然后在程序再次运行的时候获取它 C# CS程序的问题 字符转换的,谁帮忙下。。。 新手问题!这样的正则怎么写啊 URL重写 问:用C#将CSV读进数组,然后用户通过行名和列数,调出相应的数据. dispose 求一段将所有符号替换为-的正则表达式 C#数据库问题 2 改变datatimepicker控件的高度和showupdown样式 问个关于视图的效率的问题 如何在自己做的软件里面 绑定 插件
{
e.Cancel = true;
}
[DllImport("User32.dll")]
public static extern IntPtr GetSystemMenu(int hWnd, int bRevert);
[DllImport("User32.dll")]
public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);
const int MF_REMOVE = 0x1000;
const int SC_RESTORE = 0xF120; //还原
const int SC_MOVE = 0xF010; //移动
const int SC_SIZE = 0xF000; //大小
const int SC_MINIMIZE = 0xF020; //最小化
const int SC_MAXIMIZE = 0xF030; //最大化
const int SC_CLOSE = 0xF060; //关闭
Form_Load里
int hMenu;
hMenu = GetSystemMenu(this.Handle.ToInt32(), 0);
RemoveMenu(hMenu, SC_CLOSE, MF_REMOVE);