private void _Show_Click(object sender, EventArgs e) { TrayBalloon.TrayBalloon tb = new TrayBalloon.TrayBalloon(); tb.BackgroundLocation = @".\background.bmp"; tb.SoundLocation = @".\sndMsg.wav"; tb.Title = _Title.Text; tb.Message = _Text.Text; tb.Run(); }
// Tray pop up functions public void TrayPopUp(string title,string message,int second) { TrayBalloon.TrayBalloon tb = new TrayBalloon.TrayBalloon(); tb.PopUpTime = second*1000; // 7 second tb.Title = title; tb.Message = message; tb.TopMost = true; if (notify_sounds) { tb.SoundLocation = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) +"\\notify.wav"; } tb.LightWeight = true; tb.Run(); }