Click here to Skip to main content
13,248,365 members (39,442 online)
Rate this:
Please Sign up or sign in to vote.
See more:

How can I minimize program to tray
I absolutely have no knowledge in this :D

I will be gladful if someone grab the code to me with an explain to it
Posted 23-Nov-12 7:05am
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Follow the steps:-
1) First set the ShowInTaskbar property of form to false,
2) After add NotifyIcon control on the form,
3) Now first set the icon property of notifyicon to a proper icon,
4) After that set its visible property to false,
private void frmNotify_Resize(object sender, EventArgs e)
                notifyIcon1.Visible = true;

6) After this add a ContextMenuStrip and create a toolstrip for show and in its click event write
this.WindowState = FormWindowState.Normal;

7) Now in property of notifyicon you can find a property for contextmenustrip now add the object of contextmenustrip.
8) That's it run you're code and minimize it you can find it on your task bar now right click it and click on show.

Hope this will solve your problem.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Already tried it . thanks for who was finding the solution.
aspnet_regiis -i 23-Nov-12 12:47pm
If you have already tried something then you should mention it in your question so that we will not waste our precious time in posting the same solutions again
Nelek 23-Nov-12 15:26pm
Please don't post solutions to add information, to ask something or to comment another user.
- To add information to your message, you can use the widget "Improve question" / "Improve solution" at the bottom of your text.
- To ask/answer a user, you can use the widget "Have a question or comment?" (as I am doing right now with you) or the widget "reply" in another comment.
hari19113 25-Nov-12 12:00pm
After trying it did you succeed?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2017
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