www.pudn.com > sanpack_rsa_vs2003sln_src.rar > title.cs


using System; 
using System.Drawing; 
using System.Collections; 
using System.ComponentModel; 
using System.Windows.Forms; 
using sanpack_rsa_csclass; 
 
namespace sanpack_rsa_dotnet11 
{ 
	///  
	/// title 的摘要说明。 
	///  
	public class title : System.Windows.Forms.Form 
	{ 
		///  
		/// 必需的设计器变量。 
		///  
		private System.ComponentModel.Container components = null; 
 
		public title() 
		{ 
			// 
			// Windows 窗体设计器支持所必需的 
			// 
			InitializeComponent(); 
 
			// 
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码 
			// 
		} 
 
		///  
		/// 清理所有正在使用的资源。 
		///  
		protected override void Dispose( bool disposing ) 
		{ 
			if( disposing ) 
			{ 
				if(components != null) 
				{ 
					components.Dispose(); 
				} 
			} 
			base.Dispose( disposing ); 
		} 
 
		#region Windows 窗体设计器生成的代码 
		///  
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改 
		/// 此方法的内容。 
		///  
		private void InitializeComponent() 
		{ 
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(title)); 
			//  
			// title 
			//  
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); 
			this.BackColor = System.Drawing.Color.White; 
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); 
			this.ClientSize = new System.Drawing.Size(420, 270); 
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 
			this.Name = "title"; 
			this.Opacity = 0.8; 
			this.ShowInTaskbar = false; 
			this.Text = "欢迎使用"; 
			this.Load += new System.EventHandler(this.title_Load); 
 
		} 
		#endregion 
 
		private void title_Load(object sender, System.EventArgs e) 
		{ 
			this.SetDesktopLocation(Screen.PrimaryScreen.WorkingArea.Width/2-this.Size.Width/2, 
				Screen.PrimaryScreen.WorkingArea.Height/2-this.Size.Height/2); 
		} 
	} 
}