📄 frmhigh.vb
字号:
Option Strict Off
Option Explicit On
Friend Class frmHigh
Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'对于启动窗体,所创建的第一个实例为默认实例。
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'此调用是 Windows 窗体设计器所必需的。
InitializeComponent()
End Sub
'窗体重写处置,以清理组件列表。
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
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents lblScore As System.Windows.Forms.Label
Public WithEvents Label2 As System.Windows.Forms.Label
Public WithEvents Shape1 As System.Windows.Forms.Label
Public WithEvents Label1 As System.Windows.Forms.Label
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmHigh))
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.lblScore = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Shape1 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.ControlBox = False
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow
Me.ClientSize = New System.Drawing.Size(198, 350)
Me.Location = New System.Drawing.Point(1, 1)
Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.BackgroundImage = CType(resources.GetObject("frmHigh.BackgroundImage"), System.Drawing.Image)
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)
Me.BackColor = System.Drawing.SystemColors.Control
Me.Enabled = True
Me.KeyPreview = False
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.HelpButton = False
Me.WindowState = System.Windows.Forms.FormWindowState.Normal
Me.Name = "frmHigh"
Me.lblScore.Size = New System.Drawing.Size(165, 301)
Me.lblScore.Location = New System.Drawing.Point(16, 24)
Me.lblScore.TabIndex = 2
Me.lblScore.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.lblScore.BackColor = System.Drawing.Color.Transparent
Me.lblScore.Enabled = True
Me.lblScore.ForeColor = System.Drawing.SystemColors.ControlText
Me.lblScore.Cursor = System.Windows.Forms.Cursors.Default
Me.lblScore.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.lblScore.UseMnemonic = True
Me.lblScore.Visible = True
Me.lblScore.AutoSize = False
Me.lblScore.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.lblScore.Name = "lblScore"
Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter
Me.Label2.Text = "HighScores"
Me.Label2.Font = New System.Drawing.Font("Tahoma", 11.25!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.Size = New System.Drawing.Size(193, 17)
Me.Label2.Location = New System.Drawing.Point(4, 0)
Me.Label2.TabIndex = 1
Me.Label2.BackColor = System.Drawing.Color.Transparent
Me.Label2.Enabled = True
Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label2.UseMnemonic = True
Me.Label2.Visible = True
Me.Label2.AutoSize = False
Me.Label2.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Label2.Name = "Label2"
Me.Shape1.Size = New System.Drawing.Size(173, 309)
Me.Shape1.Location = New System.Drawing.Point(12, 20)
Me.Shape1.BackColor = System.Drawing.Color.Transparent
Me.Shape1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.Shape1.Visible = True
Me.Shape1.Name = "Shape1"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter
Me.Label1.Text = "Click here to close"
Me.Label1.Size = New System.Drawing.Size(191, 13)
Me.Label1.Location = New System.Drawing.Point(4, 332)
Me.Label1.TabIndex = 0
Me.Label1.BackColor = System.Drawing.Color.Transparent
Me.Label1.Enabled = True
Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label1.UseMnemonic = True
Me.Label1.Visible = True
Me.Label1.AutoSize = False
Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Label1.Name = "Label1"
Me.Controls.Add(lblScore)
Me.Controls.Add(Label2)
Me.Controls.Add(Shape1)
Me.Controls.Add(Label1)
End Sub
#End Region
#Region "升级支持"
Private Shared m_vb6FormDefInstance As frmHigh
Private Shared m_InitializingDefInstance As Boolean
Public Shared Property DefInstance() As frmHigh
Get
If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
m_InitializingDefInstance = True
m_vb6FormDefInstance = New frmHigh()
m_InitializingDefInstance = False
End If
DefInstance = m_vb6FormDefInstance
End Get
Set
m_vb6FormDefInstance = Value
End Set
End Property
#End Region
'UPGRADE_WARNING: Form 事件 frmHigh.Activate 具有新的行为。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2065"”
Private Sub frmHigh_Activated(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Activated
Dim temp As Object
Dim A As Object
For A = 1 To 10
'UPGRADE_WARNING: 未能解析对象 A 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
'UPGRADE_WARNING: 未能解析对象 temp 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
temp = temp & A & ": " & HighS(A).PlName & vbNewLine & "Score: " & HighS(A).plScore & " Date: " & HighS(A).plDate & vbNewLine '& vbNewLine
Next A
'UPGRADE_WARNING: 未能解析对象 temp 的默认属性。 单击以获得更多信息:“ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"”
lblScore.Text = temp
End Sub
Private Sub Label1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Label1.Click
If DontClose Then SaveScore() : End
Me.Hide()
MainPause = False
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -