using system ; using system.drawing ; using system.collections ; using system.componentmodel ; using system.windows.forms ; using system.data ; //导入在程序中使用到的名称空间 public class tray : form { private system.componentmodel.container components = null ; private icon mnettrayicon = new icon ( "tray.ico" ) ; private notifyicon trayicon ; private contextmenu notifyiconmnu ;