Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working in a music player, I want a NotifyIcon to show a balloonTip displaying the title of the current song.

I have the play button, which will make the player start sounding a mp3 file, in the same button event, I placed my notifyIcon balloonTip set. But it isn't showing and I have been looking for errors on Debugging Mode but it did not popup anything else.

My code:
C#
private void playBtn_Click(object sender, EventArgs e) //Play Button
    {
      player.URL = @"C:/myFile.mp3";
      notifyIcon2.BalloonTipText = player.currentMedia.getItemInfo("Title") + " - " + player.currentMedia.getItemInfo("Artist");
      notifyIcon2.ShowBalloonTip(1000);


NOTE: The player is working, what isn't working is the notifyIcon balloonTip.

Please help me. Thanks in Advance - CCB
Posted

Have you set the notifyIcon2 to visible?
 
Share this answer
 
v3
Comments
ChrisCreateBoss 13-Mar-15 20:02pm    
Yes, and it did not work.
notifyIcon control must be set a icon and it will be shown on systray
is this reason of making your program unvisible?
 
Share this answer
 
Comments
ChrisCreateBoss 13-Mar-15 20:03pm    
Ohhh yes, that's it, I did not set the notifyIcon.Icon, thanks for your help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900