登录
首页 » C# » 窗体的浮动及隐藏--示例源码下载.zip

窗体的浮动及隐藏--示例源码下载.zip

于 2019-08-08 发布
0 210
下载积分: 1 下载次数: 1

代码说明:

窗体的浮动及隐藏--示例源码下载.zip

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 动画效果浮动窗体实例
            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
  • 局域网五子棋 游戏源码下载
    局域网五子棋 游戏源码下载
    2015-06-23下载
    积分:1
  • C# Email发送程序
    C# Email发送程序
    2015-01-08下载
    积分:1
  • asp.net 上传进度条 例子源码下载
    asp.net 上传进度条 例子源码下载
    2015-04-21下载
    积分:1
  • C#多功能计算器源码下载(复杂算式计算器的例子)
    C#多功能计算器源码下载(复杂算式计算器的例子)
    2015-05-19下载
    积分:1
  • 会员管理系统 完整源码(含数据库)
    会员管理系统
    2013-12-03下载
    积分:1
  • c#通讯录项目源码(支持多数据库配置)
    支持 mysql access mssql数据库,可根据喜好使用不同的数据库 友情提示: 打开该解决方案 生成成功后, 将所有的 .sql文件以及 DefaultSchema.xsd 拷贝至Address BookobjDebug 目录 以后,再打开 Address Book.exe 即可自定义配置
    2015-05-23下载
    积分:1
  • kendo ui grid webservice 查询开发
    kendo  ui  grid  webservice  查询开发
    2014-05-14下载
    积分:1
  • 财务收据打印程序
    【实例简介】用于固定收据打印的程序
    2021-08-06 00:30:59下载
    积分:1
  • .net 2.0 List 去重 类似 distinct()函数
    .net 2.0 List 去重 类似 distinct()函数
    2013-12-13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载