3
Contributors
2
Replies
4
Views
4 Years
Discussion Span
Last Post by gtsiga
0

You could use the Tooltip class. To customize its appearance, you'll have to set OwnerDraw to true and IsBalloon to false. Then you would handle the Popup and Draw events. The Popup event gives you a chance to specify the bounds (size) of the Tooltip, and the Draw event supplies a Graphics object to specify how you want it rendered.

0
using System;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace mynotification
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            SetBalloonTip();
        }

        private void SetBalloonTip()
        {
            notifyIcon1.Icon = SystemIcons.Exclamation;
            notifyIcon1.BalloonTipTitle = "NUST";
            notifyIcon1.BalloonTipText = "Zvangu zvaita!!!!!... lol";
            notifyIcon1.BalloonTipIcon = ToolTipIcon.infor;
            notifyIcon1.Visible = true;
            notifyIcon1.ShowBalloonTip(90000);
        }

    }
}

Create a project and add a notification icon.Copy and paste the above code and make some adjustments on the tittle,text,icon and the time you want it to be displayed depending on what you want to be displayed, run the program.The notification icon will pop out automatically.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.