Display results as :

Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

free forum

[C#] Tray Icon Mode

Go down

[C#] Tray Icon Mode

Post by Dami on Fri Oct 30, 2009 3:44 am

By ZenXChaos

Step 1 -
Add a NotifyIcon to Your Form

Step 2 -
Add a ContextMenuScript

Step 3 -
Here is where We start to code and what not.
Now, You need to Add some Options to your
ContextMenuScript.Click it, and type in something like

Restore App and Minimize form

Step 3 -
Now, Double Click the Restore
And add the following code

//Sets WindowState to its normal state
            WindowState = FormWindowState.Normal;

Now, lets Do minimized
Double click the Minize you added.

Add the following code

            WindowState = FormWindowState.Minimized;

Step 4 -
Now that we are done coding, We must not Associate
the context script with the Actual notify icon.

You do this by

Clicking notify icon
Go to properties Window.

Youll see something that says


Click it, and add in

or what ever you named your contextMenuscript

Select icon, and browse for an idon.

You are Done, you now can minimize your app to the system Tray if needed.

Here are some other codes you can add


//Visit DarkRising site

//Launch an application
System.Diagnostics.Process.Start(@"C:\Program Files\Nexon\MapleStory\Engine\Engine.exe");


//Open another form
Form2 form2 = new Form2();

Please let me know if i wasnt clear or i am missing anything.
Thanks and hope this helps a few people

Sample Source Code AR6QG7WJ

Posts : 1414
Join date : 2009-08-10
Age : 29
Location : Finland

Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum