zoukankan      html  css  js  c++  java
  • 忙里偷闲迷你定制版小说阅读器

    忙里偷闲-给朋友定制迷你定制版小说阅读器,分享下,觉得有需要就去这里下载

    PC定制版 

    http://wapidd.com/publish.htm

    目的:实现一个小说阅读器,右下角显示,大小可调整,可同QQ托盘形式隐藏,双击恢复,可强制桌面显示顶端,透明度自定义及导航窗隐藏

    效果图:

     

    根据以上需求,写了各form,20多行代码:

    View Code
    public Form1()
            {
                InitializeComponent();
    //控制右下角显示
                this.Location = new Point(SystemInformation.WorkingArea.Width - this.Width, SystemInformation.WorkingArea.Height - this.Height);
    //网页加载
                webBrowser1.Url = new Uri("http://wapidd.com");
            }

            private void TrayMinimizerForm_Resize(object sender, EventArgs e)
            {  
    //判断最大最小事件触发
                           if (FormWindowState.Minimized == this.WindowState)
                {
                    notifyIcon1.Visible = true;
     this.ShowInTaskbar = false;
                    this.Hide();
                }
                else if (FormWindowState.Normal == this.WindowState)
                {
                    notifyIcon1.Visible = false;
                    this.ShowInTaskbar = true;
                }
            } 

            private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
            {
    //双击托盘图标恢复
                this.Show();
                this.WindowState = FormWindowState.Normal;
            }

    要源代码的@

  • 相关阅读:
    10 shell test命令
    9 shell 退出状态
    8 shell if else
    7 shell 数学运算
    6-x3 declare和typeset命令:设置变量属性
    6-x1 read命令:从键盘读取数据
    Bootstrap 有一个 class 属性叫做 well,它的作用是为设定的列创造出一种视觉上的深度感
    form-control给input添加这个class类后就会使用bootstrap自带的input框
    bootstrap文字居中!
    img-responsive class图片响应式
  • 原文地址:https://www.cnblogs.com/wyxy2005/p/2516958.html
Copyright © 2011-2022 走看看