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

📄 about.vb

📁 Beginning VB.NET DatabasesAll_Code.rar
💻 VB
字号:
Imports System.Reflection

Public Class About
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents imgApplicationIcon As System.Windows.Forms.PictureBox
    Friend WithEvents lblTitle As System.Windows.Forms.Label
    Friend WithEvents lblVersion As System.Windows.Forms.Label
    Friend WithEvents lblCopyright As System.Windows.Forms.Label
    Friend WithEvents lblDescription As System.Windows.Forms.Label
    Friend WithEvents btnOK As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.imgApplicationIcon = New System.Windows.Forms.PictureBox
        Me.lblTitle = New System.Windows.Forms.Label
        Me.lblVersion = New System.Windows.Forms.Label
        Me.lblCopyright = New System.Windows.Forms.Label
        Me.lblDescription = New System.Windows.Forms.Label
        Me.btnOK = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'imgApplicationIcon
        '
        Me.imgApplicationIcon.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.imgApplicationIcon.Location = New System.Drawing.Point(12, 13)
        Me.imgApplicationIcon.Name = "imgApplicationIcon"
        Me.imgApplicationIcon.Size = New System.Drawing.Size(32, 32)
        Me.imgApplicationIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.imgApplicationIcon.TabIndex = 0
        Me.imgApplicationIcon.TabStop = False
        '
        'lblTitle
        '
        Me.lblTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblTitle.Location = New System.Drawing.Point(68, 13)
        Me.lblTitle.Name = "lblTitle"
        Me.lblTitle.Size = New System.Drawing.Size(276, 23)
        Me.lblTitle.TabIndex = 1
        Me.lblTitle.Text = "Application Title"
        '
        'lblVersion
        '
        Me.lblVersion.Location = New System.Drawing.Point(68, 48)
        Me.lblVersion.Name = "lblVersion"
        Me.lblVersion.Size = New System.Drawing.Size(276, 16)
        Me.lblVersion.TabIndex = 2
        Me.lblVersion.Text = "Application Version"
        '
        'lblCopyright
        '
        Me.lblCopyright.Location = New System.Drawing.Point(68, 72)
        Me.lblCopyright.Name = "lblCopyright"
        Me.lblCopyright.Size = New System.Drawing.Size(276, 16)
        Me.lblCopyright.TabIndex = 3
        Me.lblCopyright.Text = "Application Copyright"
        '
        'lblDescription
        '
        Me.lblDescription.Location = New System.Drawing.Point(68, 96)
        Me.lblDescription.Name = "lblDescription"
        Me.lblDescription.Size = New System.Drawing.Size(276, 56)
        Me.lblDescription.TabIndex = 4
        Me.lblDescription.Text = "Application Description"
        '
        'btnOK
        '
        Me.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.btnOK.Location = New System.Drawing.Point(272, 160)
        Me.btnOK.Name = "btnOK"
        Me.btnOK.TabIndex = 5
        Me.btnOK.Text = "OK"
        '
        'About
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(354, 191)
        Me.Controls.Add(Me.btnOK)
        Me.Controls.Add(Me.lblDescription)
        Me.Controls.Add(Me.lblCopyright)
        Me.Controls.Add(Me.lblVersion)
        Me.Controls.Add(Me.lblTitle)
        Me.Controls.Add(Me.imgApplicationIcon)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "About"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
        Me.Text = "About"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub About_Load(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
        'Set this form's Text property by using the 
        'Text property of the parent form
        Me.Text = "About " & Owner.Text

        'Set the application icon using the parent form's icon 
        imgApplicationIcon.Image = Owner.Icon.ToBitmap()

        'Get a reference to the AssemblyInfo for this application
        Dim objAssemblyInfo As Type = sender.GetType()

        'Set the Text property for the title, version, copyright 
        'and description labels
        lblTitle.Text = objAssemblyInfo.Assembly.GetCustomAttributes( _
            GetType(AssemblyTitleAttribute), False).GetValue(0).Title
        lblVersion.Text = "Version " & _
            objAssemblyInfo.Assembly.GetName.Version.ToString
        lblCopyright.Text = objAssemblyInfo.Assembly.GetCustomAttributes( _
            GetType(AssemblyCopyrightAttribute), False).GetValue(0).Copyright
        lblDescription.Text = objAssemblyInfo.Assembly.GetCustomAttributes( _
            GetType(AssemblyDescriptionAttribute), False).GetValue(0).Description
    End Sub

End Class

⌨️ 快捷键说明

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