Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Icon ico = new Icon(@"C:\Users\Public\Pictures\SideShow\SSnotification.ico");g.ShowNotification( 100, // unique content id "some caption", // caption "some message", // body ico, // icon to appear on the far right of the body TimeSpan.FromSecondss(30)); // timeout interval
g.RevokeNotification(100);
g.RevokeAllNotifications;
g.AllDevicesRemoved += new EventHandler(g_AllDevicesRemoved);g.ContentMissing += new EventHandler <ContentMissingEventArgs> (g_ContentMissing);g.ContentNavigate += new EventHandler <ContentNavigateEventArgs> (g_ContentNavigate);g.ContextMenuSelect += new EventHandler <ContextMenuSelectEventArgs> (g_ContextMenuSelect);g.DeviceAdded += new EventHandler <DeviceCapabilityEventArgs> (g_DeviceAdded);g.DeviceRemoved += new EventHandler <DeviceCapabilityEventArgs> (g_DeviceRemoved);g.GadgetEnter += new EventHandler(g_GadgetEnter);g.GadgetExit += new EventHandler(g_GadgetExit);g.MenuSelect += new EventHandler <MenuSelectEventArgs>(g_MenuSelect);