如何锁定MDI子窗体的位置,为什么用Location=new Point(0,0)不起作用?
请问有什么好的方法?
请问有什么好的方法?
解决方案 »
- 绕过验证码登陆,模拟读取cookie发送至网站登陆的问题
- vs2010添加数据库连接时的路径错误
- 在button上显示图像问题?在线等。。。
- 在asp中的value="&rs("hw_id")&" 等同于C#下的哪个语句?
- 提一个简单问题 有关字符表示
- 一个简单问题,关于函数参数传递
- 能不能用索引的方法获取。
- 各位高手,谁有简单专家系统的例子?来共享一下??
- 怎样提高C#的运行速度?C#生成的代码可在没有.net环境下运行吗?
- ▲▲My God——我又发现DataSet的一个BUG,快来灭虫!▲▲
- List<>作为参数传的时候为什么报错啊?
- SQL怎么让回复时间显示为:1小前,2小前,1天前,.......
public static extern int GetSystemMenu(int hWnd, int bRevert);
[DllImport("User32.dll")]
public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);public const int MF_BYCOMMAND = 0x00000000;
public const int MF_DISABLED = 0x00000002;
public const int MF_GRAYED = 0x00000001;
public const int SC_MOVE = 0xf010;protected override void OnLoad(EventArgs e)
{
int hMenu;
hMenu = GetSystemMenu(this.Handle.ToInt32(), 0);
//移动菜单
RemoveMenu(hMenu, SC_MOVE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
}