How can I make my application go in the system tray when the 'minimize button' is clicked?

What's the code to make it go in the System Tray?