Windows Form File /DBCommander/Modals/AboutForm.cs (C#)
using System;  
using System.Drawing;  
using System.Collections;  
using System.ComponentModel;  
using System.Windows.Forms;  
using System.Reflection;  
  
namespace YariSoft.DBCommander.Modals  
{  
    public class AboutForm : System.Windows.Forms.Form  
    {  
        #region Loacal variables  
        private System.Windows.Forms.Button okButton;  
        private System.Windows.Forms.PictureBox pictureBox1;  
        private System.Windows.Forms.Label nameLabel;  
        private System.Windows.Forms.Label versionLabel;  
        private System.Windows.Forms.Label authorLabel;  
        private System.Windows.Forms.Label emailLabel;  
        private System.Windows.Forms.Label productLabel;  
        private System.Windows.Forms.LinkLabel mailLinkLabel;  
        private System.ComponentModel.Container components = null;  
        #endregion  
  
        #region Constructor/destructor  
        public AboutForm()  
        {  
            //  
            // Required for Windows Form Designer support  
            //  
            InitializeComponent();  
  
        }  
  
        /// <summary>  
        /// Clean up any resources being used.  
        /// </summary>  
        protected override void Dispose( bool disposing )  
        {  
            if( disposing )  
            {  
                if(components != null)  
                {  
                    components.Dispose();  
                }  
            }  
            base.Dispose( disposing );  
        }  
        #endregion  
  
        #region Windows Form Designer generated code  
        /// <summary>  
        /// Required method for Designer support - do not modify  
        /// the contents of this method with the code editor.  
        /// </summary>  
        private void InitializeComponent()  
        {  
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutForm));  
            this.okButton = new System.Windows.Forms.Button();  
            this.nameLabel = new System.Windows.Forms.Label();  
            this.versionLabel = new System.Windows.Forms.Label();  
            this.authorLabel = new System.Windows.Forms.Label();  
            this.emailLabel = new System.Windows.Forms.Label();  
            this.pictureBox1 = new System.Windows.Forms.PictureBox();  
            this.productLabel = new System.Windows.Forms.Label();  
            this.mailLinkLabel = new System.Windows.Forms.LinkLabel();  
            this.SuspendLayout();  
            //    
            // okButton  
            //    
            this.okButton.Location = new System.Drawing.Point(136, 192);  
            this.okButton.Name = "okButton";  
            this.okButton.TabIndex = 0;  
            this.okButton.Text = "&Ok";  
            this.okButton.Click += new System.EventHandler(this.okButton_Click);  
            //    
            // nameLabel  
            //    
            this.nameLabel.AutoSize = true;  
            this.nameLabel.Location = new System.Drawing.Point(192, 36);  
            this.nameLabel.Name = "nameLabel";  
            this.nameLabel.Size = new System.Drawing.Size(115, 13);  
            this.nameLabel.TabIndex = 1;  
            this.nameLabel.Text = "Database commander";  
            //    
            // versionLabel  
            //    
            this.versionLabel.AutoSize = true;  
            this.versionLabel.Location = new System.Drawing.Point(192, 56);  
            this.versionLabel.Name = "versionLabel";  
            this.versionLabel.Size = new System.Drawing.Size(49, 13);  
            this.versionLabel.TabIndex = 2;  
            this.versionLabel.Text = "Version: ";  
            //    
            // authorLabel  
            //    
            this.authorLabel.AutoSize = true;  
            this.authorLabel.Location = new System.Drawing.Point(192, 76);  
            this.authorLabel.Name = "authorLabel";  
            this.authorLabel.Size = new System.Drawing.Size(102, 13);  
            this.authorLabel.TabIndex = 3;  
            this.authorLabel.Text = "Author: Igor Malkov";  
            //    
            // emailLabel  
            //    
            this.emailLabel.AutoSize = true;  
            this.emailLabel.Location = new System.Drawing.Point(192, 96);  
            this.emailLabel.Name = "emailLabel";  
            this.emailLabel.Size = new System.Drawing.Size(43, 13);  
            this.emailLabel.TabIndex = 4;  
            this.emailLabel.Text = "E-mail: ";  
            //    
            // pictureBox1  
            //    
            this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));  
            this.pictureBox1.Location = new System.Drawing.Point(8, 8);  
            this.pictureBox1.Name = "pictureBox1";  
            this.pictureBox1.Size = new System.Drawing.Size(168, 168);  
            this.pictureBox1.TabIndex = 5;  
            this.pictureBox1.TabStop = false;  
            //    
            // productLabel  
            //    
            this.productLabel.AutoSize = true;  
            this.productLabel.Location = new System.Drawing.Point(192, 16);  
            this.productLabel.Name = "productLabel";  
            this.productLabel.Size = new System.Drawing.Size(78, 13);  
            this.productLabel.TabIndex = 6;  
            this.productLabel.Text = "Product name:";  
            //    
            // mailLinkLabel  
            //    
            this.mailLinkLabel.AutoSize = true;  
            this.mailLinkLabel.Location = new System.Drawing.Point(230, 96);  
            this.mailLinkLabel.Name = "mailLinkLabel";  
            this.mailLinkLabel.Size = new System.Drawing.Size(115, 13);  
            this.mailLinkLabel.TabIndex = 7;  
            this.mailLinkLabel.TabStop = true;  
            this.mailLinkLabel.Text = "emalkov@zahav.net.il";  
            this.mailLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.mailLinkLabel_LinkClicked);  
            //    
            // AboutForm  
            //    
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);  
            this.ClientSize = new System.Drawing.Size(346, 231);  
            this.Controls.AddRange(new System.Windows.Forms.Control[] {  
                                                                          this.mailLinkLabel,  
                                                                          this.productLabel,  
                                                                          this.emailLabel,  
                                                                          this.authorLabel,  
                                                                          this.versionLabel,  
                                                                          this.nameLabel,  
                                                                          this.okButton,  
                                                                          this.pictureBox1});  
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;  
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));  
            this.MaximizeBox = false;  
            this.MinimizeBox = false;  
            this.Name = "AboutForm";  
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;  
            this.Text = "About";  
            this.TopMost = true;  
            this.Load += new System.EventHandler(this.AboutForm_Load);  
            this.ResumeLayout(false);  
  
        }  
        #endregion  
  
        #region Private functions  
        private void okButton_Click(object sender, System.EventArgs e)  
        {  
            this.Close();  
        }  
  
        private void AboutForm_Load(object sender, System.EventArgs e)  
        {  
            this.versionLabel.Text +=  
                Assembly.GetExecutingAssembly().GetName().Version.ToString();  
            this.okButton.Select();  
        }  
  
        private void mailLinkLabel_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)  
        {  
            System.Diagnostics.Process.Start("mailto:emalkov@zahav.net.il");  
            this.Close();  
        }  
  
        #endregion  
  
    }  
}