-
动画效果浮动窗体实例
private void StopRectTimer_Tick(object sender, EventArgs e) { //如果鼠标在窗体上,则根据停靠位置显示整个窗体 if (this.Bounds.Contains(Cursor.Position)) { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, 0); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - this.Height); break; case AnchorStyles.Left: this.Location = new Point(0, this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, this.Location.Y); break; } } else //如果鼠标离开窗体,则根据停靠位置隐藏窗体,但须留出部分窗体边缘以便鼠标选中窗体 { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, (this.Height - 3) * (-1)); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - 5); break; case AnchorStyles.Left: this.Location = new Point((-1) * (this.Width - 3), this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, this.Location.Y); break; } } }
- 2015-06-10下载
- 积分:1
-
我上传了个 记事本 C#写的 在Windows自带的记事本上加了工具栏...
我上传了个 记事本 C#写的 在Windows自带的记事本上加了工具栏-I uploaded a notebook written in C# on Windows built-in increases in the notebook on the Toolbar
- 2022-03-04 12:52:49下载
- 积分:1
-
jfzh
可自由地将繁体转换为简体输出,也可将简体转换为繁体(free to be converted to traditional English output can also be converted to traditional English)
- 2006-06-21 13:45:49下载
- 积分:1
-
c#美女时钟
一个c#原代码程序,里面的程序内容是,有美女举着时间的牌子,时间是系统上取的时间,当到一小时后就会切换图片
- 2022-07-25 10:55:47下载
- 积分:1
-
自适应巡航系统51单片机实现
51单片机为主控芯片,L298N驱动电机,12864屏幕实时状态显示。实时测距后返回数据以判定当前速度值
- 2022-02-07 07:35:21下载
- 积分:1
-
网上报名系统
非常实用的网上报名系统,ASP+acess,满足大多数网上报名需求
- 2023-05-23 05:55:03下载
- 积分:1
-
this book is the best book about the development of delphi
this book is the best book about the development of delphi
- 2022-03-10 13:24:19下载
- 积分:1
-
验证码识别c# 源码
验证码识别c# 源码. 可以识别多重验证码。可以稍作修改识别更多的类型。已经使用过。可执行。 可以识别多重验证码。可以稍作修改识别更多的类型。已经使用过。可执行。
- 2022-12-08 23:50:03下载
- 积分:1
-
c++有限元程序
c++yxyuan,henhd很好的源代码喝酒啊哈哈哈哈
- 2023-05-04 10:45:03下载
- 积分:1
-
震惊中国13亿人的代码
private bool _isHead;
public bool IsHead//属性
{
get { return _isHead; }
set { _isHead = value; }
}
//蛇块的编号
private int _blockNumber;
public int BlockNumber
{
get { return _blockNumber; }
set { _blockNumber = value; }
}
- 2022-07-03 18:18:49下载
- 积分:1