private ShowBalloonTip ( string title, string message, BalloonFlags flags, IntPtr balloonIconHandle ) : void | ||
title | string | The title to display on the balloon tip. |
message | string | The text to display on the balloon tip. |
flags | BalloonFlags | Indicates what icon to use. |
balloonIconHandle | IntPtr | A handle to a custom icon, if any, or
/// |
return | void |
private void ShowBalloonTip(string title, string message, BalloonFlags flags, IntPtr balloonIconHandle)
{
EnsureNotDisposed();
iconData.BalloonText = message ?? String.Empty;
iconData.BalloonTitle = title ?? String.Empty;
iconData.BalloonFlags = flags;
iconData.CustomBalloonIconHandle = balloonIconHandle;
Util.WriteIconData(ref iconData, NotifyCommand.Modify, IconDataMembers.Info | IconDataMembers.Icon);
}
TaskbarIcon::ShowBalloonTip ( string title, string message, BalloonIcon symbol ) : void | |
TaskbarIcon::ShowBalloonTip ( string title, string message, Icon customIcon ) : void |
public MainWindow() { InitializeComponent(); // Get the taskbar icon object Tb = this.ProcessNotifyIcon; Tb.ToolTipText = Properties.Resources.ProgramName; // Set window title this.Title = Properties.Resources.ProgramName; // Initial setting CurrentStatus = ProcessStatus.Stopped; UpdateIcon(); // Don't show window SetWindowVisibility(false); // Load the settings LoadSettings(); // Start the checking process StartCheckProcess(); if (ShowBalloonMessageOnStart) { Tb.ShowBalloonTip(Properties.Resources.ProgramName, "Started", BalloonIcon.Info); } }