Click here to Skip to main content
15,851,902 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
First I drag a notifyicon from toolbox to form, and set the icon in property. Then I paste your code to the form as below:
private void TrayMinimizerForm_Resize(object sender, EventArgs e)
   notifyIcon1.BalloonTipTitle = "Minimize to Tray App";
   notifyIcon1.BalloonTipText = "You have successfully minimized your form.";
   if (FormWindowState.Minimized == this.WindowState)
      notifyIcon1.Visible = true; 
   else if (FormWindowState.Normal == this.WindowState)
      notifyIcon1.Visible = false;
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
   this.WindowState = FormWindowState.Normal;
Is there any problem? It goes in system tray but no bubble form is show. So after clicking in minize i cant find any form in system tray.
Updated 25-Sep-12 9:40am
fjdiewornncalwe 25-Sep-12 14:17pm    
Please don't repost the same question more than once. Make alterations to your original question only. Cheers.

1 solution

1. No need to repost, follow at one place: how to go through this article[^]
You can use 'Improve Question' link to edit/update your question.

2. It looks like you want to ask this question to an author related to his/her article. I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum. So, please post the same at the article's message forum.

3. Did you download the sample code attachment present on the article and tried out (instead of copy-pasting code and trying)? May be you get to see the whole working and implementation there itself clarifying your doubts.
Share this answer
sariqkhan 26-Sep-12 0:47am    
but author is not rplying. And i have download the attachment the code is propoer there and working properly but when i do it myself. There is no errors but program is not working properly. Its not showing bubble bar in system tray.
Sandeep Mewara 26-Sep-12 0:57am    
You got a sample download (that is working) and yet you fail to implement similar feature in your app? :doh:
sariqkhan 26-Sep-12 2:52am    
yup thats the problem. I dont know whats the problem is. I have copied all the code but still its not working. Can you help please bro
: (
i have tried every possible way to do that.
I am not a coder i am new to .net and i am learning coding.
Sandeep Mewara 26-Sep-12 2:58am    
I doubt if anyone can help more online. If you are unable to fix it with a working sample with you, find someone (senior, teacher) to look into it.

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