📄 aboutform.cs
字号:
#region Using 指令
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
#endregion
namespace ffDialog
{
/// <summary>
/// AboutForm 的摘要说明。
/// </summary>
class AboutForm : System.Windows.Forms.Form
{
private Label aboutForm_Title;
private Label aboutForm_CopyLeft;
private MenuItem OKMenu;
private Label aboutForm_Ver;
private PictureBox aboutForm_Logo;
/// <summary>
/// 窗体的主菜单。
/// </summary>
private System.Windows.Forms.MainMenu mainMenu1;
public AboutForm()
{
InitializeComponent();
//调整窗口内控件位置
AboutForm_Resize(null, null);
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.OKMenu = new System.Windows.Forms.MenuItem();
this.aboutForm_Title = new System.Windows.Forms.Label();
this.aboutForm_CopyLeft = new System.Windows.Forms.Label();
this.aboutForm_Ver = new System.Windows.Forms.Label();
this.aboutForm_Logo = new System.Windows.Forms.PictureBox();
//
// mainMenu1
//
this.mainMenu1.MenuItems.Add(this.OKMenu);
//
// OKMenu
//
this.OKMenu.Text = "确定";
this.OKMenu.Click += new System.EventHandler(this.OKMenu_Click);
//
// aboutForm_Title
//
this.aboutForm_Title.ForeColor = System.Drawing.Color.Black;
this.aboutForm_Title.Location = new System.Drawing.Point(3, 9);
this.aboutForm_Title.Size = new System.Drawing.Size(170, 22);
this.aboutForm_Title.Text = "Febotion File Dialog";
//
// aboutForm_CopyLeft
//
this.aboutForm_CopyLeft.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular);
this.aboutForm_CopyLeft.ForeColor = System.Drawing.Color.Black;
this.aboutForm_CopyLeft.Location = new System.Drawing.Point(0, 246);
this.aboutForm_CopyLeft.Size = new System.Drawing.Size(240, 22);
this.aboutForm_CopyLeft.Text = "Febotion.com 开源发布 2006";
this.aboutForm_CopyLeft.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// aboutForm_Ver
//
this.aboutForm_Ver.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular);
this.aboutForm_Ver.ForeColor = System.Drawing.Color.Black;
this.aboutForm_Ver.Location = new System.Drawing.Point(3, 31);
this.aboutForm_Ver.Size = new System.Drawing.Size(170, 22);
this.aboutForm_Ver.Text = "版本号 1.3";
//
// aboutForm_Logo
//
this.aboutForm_Logo.Image = ((System.Drawing.Image)(resources.GetObject("aboutForm_Logo.Image")));
this.aboutForm_Logo.Location = new System.Drawing.Point(124, 198);
this.aboutForm_Logo.Size = new System.Drawing.Size(113, 45);
this.aboutForm_Logo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
//
// AboutForm
//
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(240, 268);
this.Controls.Add(this.aboutForm_Title);
this.Controls.Add(this.aboutForm_CopyLeft);
this.Controls.Add(this.aboutForm_Ver);
this.Controls.Add(this.aboutForm_Logo);
this.ForeColor = System.Drawing.Color.Black;
this.Menu = this.mainMenu1;
this.Text = "关于 ffDialog";
this.Resize += new System.EventHandler(this.AboutForm_Resize);
}
#endregion
private void OKMenu_Click(object sender, EventArgs e)
{
this.Close();
}
//窗口改变大小时
private void AboutForm_Resize(object sender, EventArgs e)
{
//aboutForm_CopyLeft.Top = this.Height - aboutForm_CopyLeft.Height;
//aboutForm_CopyLeft.Left = this.Width - aboutForm_CopyLeft.Width;
//aboutForm_Logo.Top = aboutForm_CopyLeft.Top - aboutForm_Logo.Height - 1;
//aboutForm_Logo.Left = this.Width - aboutForm_Logo.Width - 3;
//调整控件位置
aboutForm_Title.Width = this.Width - 10;
aboutForm_Ver.Width = this.Width - 10;
aboutForm_CopyLeft.Width = this.Width - 10;
aboutForm_Logo.Left = this.Width - aboutForm_Logo.Width - 5;
aboutForm_CopyLeft.Top = this.Height - aboutForm_CopyLeft.Height - 5;
aboutForm_Logo.Top = aboutForm_CopyLeft.Top - aboutForm_Logo.Height;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -