To manually minimize mIRC to the tray, just hold down the SHIFT key when you click the minimize button.

To make mIRC always minimize to the tray, open the options dialog > Display + Options Tab > Tray button > Choose the options you like

-genius_at_work