private void btnItemRefresh_Click(object sender, EventArgs e) { //pageControlTask.Bind(); taskbarNotifier1 = new TaskbarNotifier(); taskbarNotifier1.SetBackgroundBitmap(new Bitmap(GetType(), "bg_message1.gif"), Color.FromArgb(255, 0, 255)); taskbarNotifier1.SetCloseBitmap(new Bitmap(GetType(), "close.bmp"), Color.FromArgb(255, 0, 255), new Point(263, 8)); taskbarNotifier1.TitleRectangle = new Rectangle(195, 100, 70, 25); taskbarNotifier1.ContentRectangle = new Rectangle(30, 30, 190, 68); taskbarNotifier1.TitleClick += new EventHandler(TitleClick); taskbarNotifier1.ContentClick += new EventHandler(ContentClick); taskbarNotifier1.CloseClick += new EventHandler(CloseClick); taskbarNotifier1.CloseClickable = true; taskbarNotifier1.TitleClickable = true; taskbarNotifier1.ContentClickable = true; taskbarNotifier1.EnableSelectionRectangle = false; taskbarNotifier1.KeepVisibleOnMousOver = true; // Added Rev 002 taskbarNotifier1.ReShowOnMouseOver = false; // Added Rev 002 string taskString = GetTaskBarNotifierData(); if (!string.IsNullOrEmpty(taskString)) { taskbarNotifier1.Show("查看", taskString, 500, 3000, 500); } }