📄 frmabout.vb
字号:
Public Class FrmAbout
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents Panel_Fill As System.Windows.Forms.Panel
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Panel_Fill = New System.Windows.Forms.Panel
Me.SuspendLayout()
'
'Panel_Fill
'
Me.Panel_Fill.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Panel_Fill.Dock = System.Windows.Forms.DockStyle.Fill
Me.Panel_Fill.Location = New System.Drawing.Point(0, 0)
Me.Panel_Fill.Name = "Panel_Fill"
Me.Panel_Fill.Size = New System.Drawing.Size(413, 291)
Me.Panel_Fill.TabIndex = 0
'
'FrmAbout
'
Me.AllowDrop = True
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(413, 291)
Me.Controls.Add(Me.Panel_Fill)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.MaximizeBox = False
Me.Name = "FrmAbout"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "关于我们"
Me.ResumeLayout(False)
End Sub
#End Region
'----------------------------------------------
' 窗体加载
'----------------------------------------------
Private Sub FrmAbout_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim size As String
size = System.Configuration.ConfigurationSettings.AppSettings("size")
If (Not (size.Equals("auto"))) Then
Dim w As Integer, h As Integer
Try
w = CType(System.Configuration.ConfigurationSettings.AppSettings("width"), Integer)
h = CType(System.Configuration.ConfigurationSettings.AppSettings("height"), Integer)
Me.ClientSize = New System.Drawing.Size(w, h)
Catch ex As System.InvalidCastException
Me.ClientSize = New System.Drawing.Size(413, 291)
End Try
End If
Dim pic_name As String = System.Configuration.ConfigurationSettings.AppSettings("picture_about")
Panel_Fill.BackgroundImage = Image.FromFile(pic_name)
Catch ex As System.IO.FileNotFoundException
MsgBox("找不到背景图片,请检查程序文件夹!", MsgBoxStyle.Exclamation Or MsgBoxStyle.OKOnly, "系统提示")
Catch ex As Exception
MsgBox("系统错误,请检查重启!", MsgBoxStyle.Exclamation Or MsgBoxStyle.OKOnly, "系统提示")
Application.Exit()
End Try
End Sub
'----------------------------------------------
'关闭版本窗口
'----------------------------------------------
Private Sub Panel_Fill_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel_Fill.Click
Me.Hide()
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -