Click here to Skip to main content
15,921,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends,
I am working in C#.net Language. I have doubt in using Notify icon in C#.net. I have Two Form.Form 1 and Form 2. Form 1 is a Parent Form(name).Form 2 is a Child Form(name). I am using Notify icons in two Forms.when i am minimize the Form 1.automatically Form 2 minimize and I need in the Notify icon message which form is processing ? How can i do this?please solve me.
thanks
Narayanan
Posted
Comments
Ankur\m/ 29-Apr-11 0:22am    
Have your searched Google/Bing for notify icon examples?
naraayanan 29-Apr-11 0:34am    
Thanks for u reply.But i can't get the correct code.

1 solution

What's wrong with the MSDN help page about System.Windows.Forms.NotifyIcon? It even has the sample code which you can run and see how it works.

Here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx[^].

Your notify icon just shows the text (and Icon, and can have menu, etc.). Show whatever you want from any form. Do you need to show which form is in which state? Use some text matching the form title text or something like that. "Correct code" is just what you think is correct here.

—SA
 
Share this answer
 
v2
Comments
Abhinav S 29-Apr-11 0:50am    
Good comment. My 5. MSDN should help the OP.
Sergey Alexandrovich Kryukov 29-Apr-11 1:01am    
Thank you, Albin.
--SA
[no name] 29-Apr-11 0:51am    
Nice one. My 5 too.
Sergey Alexandrovich Kryukov 29-Apr-11 1:01am    
Thank you, Ramalinga.
--SA

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