忙里偷闲-迷你定制版小说阅读器

本文介绍了一款为朋友特别定制的迷你小说阅读器,具备右下角显示、大小调整、QQ托盘隐藏、桌面顶端固定及透明度自定义等功能。通过20多行代码实现了网页加载、窗口状态变化监听与恢复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

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;
        }

 

要源代码的@

转载于:https://www.cnblogs.com/wyxy2005/archive/2012/05/24/2516958.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值