Notify Icon not working?

D

DBC User

I have a windows form and I added a notify icon. In there I have
following 2 lines

notifyIcon.ShowBaloonTip(1000,"test", msg, ToolTipIcon.Info);

I stepped through the code and it executed properly but it didn't show
the baloon. Does anyone know what am I missing?

Thanks.
 
G

Guest

Hi

You have missed one line of your code. I tried and it works. I did it this
way, why do not you give a try like this.

private void Form1_Load(object sender, EventArgs e)
{
notifyIcon1.Icon = SystemIcons.Exclamation;
this.Click += new EventHandler(Form1_Click);
}

void Form1_Click(object sender, EventArgs e)
{
notifyIcon1.ShowBalloonTip(1000, "Balloon Tip Title", "Balloon
Tip Text", ToolTipIcon.Info);

}

Prem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top