⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.cs

📁 XP界面优化精灵, XP界面优化精灵
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace XP界面优化精灵
{
	/// <summary>
	/// About 的摘要说明。
	/// </summary>
	public class About : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Timer moveInfo;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.Label aboutInfo;
		Color c=Color.Red ;
		public About()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(About));
			this.moveInfo = new System.Windows.Forms.Timer(this.components);
			this.aboutInfo = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// moveInfo
			// 
			this.moveInfo.Enabled = true;
			this.moveInfo.Interval = 10;
			this.moveInfo.Tick += new System.EventHandler(this.moveInfo_Tick);
			// 
			// aboutInfo
			// 
			this.aboutInfo.BackColor = System.Drawing.Color.Transparent;
			this.aboutInfo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.aboutInfo.ForeColor = System.Drawing.Color.Red;
			this.aboutInfo.Location = new System.Drawing.Point(-66, 174);
			this.aboutInfo.Name = "aboutInfo";
			this.aboutInfo.Size = new System.Drawing.Size(388, 322);
			this.aboutInfo.TabIndex = 0;
			this.aboutInfo.Text = "XP界面优化精灵";
			this.aboutInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.aboutInfo.Click += new System.EventHandler(this.About_Click);
			this.aboutInfo.MouseMove += new System.Windows.Forms.MouseEventHandler(this.About_MouseMove);
			this.aboutInfo.MouseLeave += new System.EventHandler(this.About_MouseLeave);
			// 
			// About
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(100)), ((System.Byte)(119)), ((System.Byte)(214)));
			this.ClientSize = new System.Drawing.Size(256, 200);
			this.Controls.Add(this.aboutInfo);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "About";
			this.Opacity = 0.7;
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "About";
			this.TopMost = true;
			this.Click += new System.EventHandler(this.About_Click);
			this.Load += new System.EventHandler(this.About_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void About_Load(object sender, System.EventArgs e)
		{
			this.aboutInfo.ForeColor =Color.FromArgb (0,c );
			this.Height =1;
			this.aboutInfo .Text="随感工作室\r\n\r\n作者:Blake\r\n软件名称:XP界面优化精灵\r\n发布日期:2006.1.28\r\n版本:V1.0\r\n开发平台:C#\r\n运行平台:2000/xp/2003  支持.NET框架\r\nE-mail:guofarui@126.com\r\nhttp://www.tyuan.ik8.com\r\nCopyright 2005-2006 by Blake\r\nAll rights reserved";
		}
		private void moveInfo_Tick(object sender, System.EventArgs e)
		{
			if(this.Height <200)
			{
				this.Height +=2;
			}
			else
			{	this.moveInfo .Interval=20;
				aboutInfo.Top --;
				if(this.aboutInfo.ForeColor.A<255)
				{
					this.aboutInfo.ForeColor =Color.FromArgb (this.aboutInfo.ForeColor.A +1,c);
				}
				if(aboutInfo.Top==0-this.aboutInfo.Height )
				{
					aboutInfo.Top =this.Height ;
					Random r=new Random ();
					c=Color.FromArgb (r.Next (255),r.Next (255),r.Next (255));
					this.aboutInfo.ForeColor =Color.FromArgb (0,c );
					
				}
			}
		}
		private void About_Click(object sender, System.EventArgs e)
		{
			Close();
		}

		private void About_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			this.moveInfo.Stop ();
		}

		private void About_MouseLeave(object sender, System.EventArgs e)
		{
			this.moveInfo.Start ();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -