为notifyIcon.icon属性赋图片

System.Drawing.Bitmap bp;
             bp = new Bitmap(Application.StartupPath + @"image" + MeiYeShuo.UI.BI.Frame.NotifyIcon);
             try
             {
                 notifyIcon1.Icon = Icon.FromHandle(bp.GetHicon());
                 notifyIcon1.Visible = true;
             }
             catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
原文地址:https://www.cnblogs.com/armanda/p/3346136.html