WINFORM應用程式的主進入點和清除資源

        /// <summary>
        
/// 應用程式的主進入點。
        
/// </summary>
        [STAThread]
        
static void Main() 
        {
            Application.Run(
new Form1());
        }
        /// <summary>
        
/// 清除任何使用中的資源。
        
/// </summary>
        protected override void Dispose( bool disposing )
        {
            
if( disposing )
            {
                
if (components != null
                {
                    components.Dispose();
                }
            }
            
base.Dispose( disposing );
        }
posted @ 2006-12-12 14:22  Athrun  阅读(238)  评论(0编辑  收藏  举报