国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
c#中窗體實(shí)現(xiàn)隱藏,任務(wù)欄為什么無圖標(biāo)?再怎樣彈出顯示?
建立一個(gè) contextMenu1 上面有4個(gè)菜單項(xiàng),miShowWindow,miShowIcon,miShowAll,miExit
然后設(shè)置主窗體和notifyIcon(此處實(shí)例是ni)的contextMenu為此contextMenu1,單擊菜單可以看到效果,如果最小化也要推到托盤的話,可能要用到其它事件

.................................................................
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Notify
{
    public partial class Notify : Form
    {
        public Notify()
        {
            InitializeComponent();
        }
        private void miShowWindow_Click(object sender, EventArgs e)
        {
            //顯示窗體
            this.Visible = true;
            this.ni.Visible = false;
        }
        private void miShowAll_Click(object sender, EventArgs e)
        {
            //顯示全部
            this.Visible = true;
            this.ni.Visible = true;
        }
        private void miShowIcon_Click(object sender, EventArgs e)
        {
            //顯示托盤
            this.Visible = false;
            this.ni.Visible = true;
        }
        private void miExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
        private void ni_Click(object sender, EventArgs e)
        {
            //顯示托盤
            miShowWindow_Click(sender, e);
        }
    }
}
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
系統(tǒng)托盤NotifyIcon控件
Visual?C#?windows窗體示例主題(一)(MSDN整理)
C#
一個(gè)窗體作為另一個(gè)窗體的容器
C#winform中怎么將程序最小化到系統(tǒng)托盤
vb.net入門--NotifyIcon 組件的使用
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服