zoukankan      html  css  js  c++  java
  • windows常用控件

     

     ---------------------------------------------------------------------------------------------

    任务栏气泡消息notifyIcon控件

    1.notifyIcon2.ShowBalloonTip(10000, "hello", "world", ToolTipIcon.Info);

    2.contextMenuStrip1,好像还需要放一个这个控件

    3.notifyicon要指定他的ico属性,这样才会弹出消息

    ---------------------------------

    鼠标右健显示菜单

    1.contextMenuStrip1,控件上要找到mouseup的方法

      private void Form1_MouseUp(object sender, MouseEventArgs e)
            {
                if (e.Button == MouseButtons.Right)
                {

                  //  ContextMenu menu = new ContextMenu();
                    //menu.Show(this, new Point(e.X,e.Y+_lvHosts.Top));
                    contextMenuStrip1.Show(this, new Point(e.X, e.Y + this.Top));
                }
            }

    ----------------------------------------------------------------------

    不显示窗体

       //不在任务栏上显示
                this.ShowInTaskbar = false;

    -------------------------------- 

  • 相关阅读:
    关于栈部分知识点
    面向对象--四则运算
    转型第一步
    输入输出文件版本——计算题
    作业二
    2017《面向对象程序设计》课程作业一
    第四次作业
    light oj 1079
    Light oj 1080
    Codeforces 486B OR in Matrix【水题】
  • 原文地址:https://www.cnblogs.com/qq4004229/p/2759941.html
Copyright © 2011-2022 走看看