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