CODE
public void ShowBalloon(uint currentThreadID,uint iconId, string balloonTitle, string balloonText, uint balloonTimeout,NotifyCommand notifyCommand)
{
// find notify window
m_foundNotifyWindow = false;
EnumThreadWndProc enumThreadWndProc = new EnumThreadWndProc(FindNotifyWindowCallback);
EnumThreadWindows(currentThreadID, enumThreadWndProc, 0);
if(m_foundNotifyWindow)
{
// show the balloon
NotifyIconData notifyIconData = new NotifyIconData();
notifyIconData.cbSize = (System.UInt32)System.Runtime.InteropServices.Marshal.SizeOf(typeof(NotifyIconData));
notifyIconData.hWnd = m_notifyWindow;
notifyIconData.uID = iconId;
notifyIconData.uFlags = NotifyFlags.Info;
notifyIconData.uTimeoutOrVersion = balloonTimeout;
notifyIconData.szInfo = balloonText;
notifyIconData.szInfoTitle = balloonTitle;
Shell_NotifyIcon(notifyCommand, ref notifyIconData);
}
}
and calling as
m_notifyIcon.ShowBalloon(SDManagerProxy.GetCurrentThreadId(),0,"Exit..","Message",FrmStatusInformation.BALLOON_TIMEOUT,NotifyCommand.SetFocus);