Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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; 
      notifyIcon1.ShowBalloonTip(500);
      this.Hide();
   }
   else if (FormWindowState.Normal == this.WindowState)
   {
      notifyIcon1.Visible = false;
   }
}
 
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
   this.Show();
   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.
Posted 25-Sep-12 9:02am
sariqkhan1.4K
Edited 25-Sep-12 9:40am
v3
Comments
Marcus Kramer at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2
Comments
sariqkhan at 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 at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 7,130
1 DamithSL 5,089
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,647
4 Kornfeld Eliyahu Peter 4,409


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100