像QQ一样鼠标移到那窗体就出来 求代码 在等
解决方案 »
- c# 应用程序出错 大家帮忙看看问题出在哪呀 谢谢了 我急呀
- 用bitmap类绘图在火狐上显示为乱码?!
- 急!急!在线等!C# Windows Forms 中自定义TextBox控件的属性和方法。跪求!高人请进
- xml问题,大家帮帮我啊.
- 求一个普通点的winform(c#)对sqlserver操作类
- 点击源代码 直接运行程序-一个实用的C#工具(包括源码)
- .net是个语言还是平台?
- 兄弟姐妹请帮忙!谢谢了
- 各位,问一个问题,我在安装VS.NET的时候,没有安装IIS,等到VS.NET安装好了,才安装IIS,这样就造成了IIS无法打开ASPX页面,现在有什吗
- 想学C#,各位C#高手推荐几本入门的书先~
- 请问怎么样动态生成HashSet<Person>泛型?这样为何不行?
- WebRequest.Create禁止自动将反斜杆转为斜杆
http://topic.csdn.net/u/20090623/12/226db2d9-a458-4126-b8b6-f36738d15689.html
无标题栏的可能不行
当界面在窗体边上的时候,改变size
当鼠标在那个小边上的时候。改变size
this.timer = new System.Windows.Forms.Timer();
this.timer.Interval = 50;
this.timer.Tick += delegate
{
if (this.timer.Interval == 50)
this.timer.Interval = 500;
else if (this.timer.Interval == 500)
this.timer.Interval = 700;
else
{
this.timer.Interval = 50;
this.timer.Enabled = false;
} if (this.Left <= 0)
{
if (this.Bounds.Contains(MousePosition))
this.Left = 0;
else
this.Left = -this.Width + 2;
}
else if (this.Top <= 0)
{
if (this.Bounds.Contains(MousePosition))
this.Top = 0;
else
this.Top = -this.Height + 2;
}
else if (this.Right >= SystemInformation.WorkingArea.Width)
{
if (this.Bounds.Contains(MousePosition))
this.Left = SystemInformation.WorkingArea.Width - this.Width+1;
else
this.Left = SystemInformation.WorkingArea.Width-1;
}
};
#endregion