frmintro.frm
来自「如何打开运行的文本文件和图象文件」· FRM 代码 · 共 69 行
FRM
69 行
VERSION 5.00
Begin VB.Form frmIntro
BorderStyle = 1 'Fixed Single
Caption = "Intro"
ClientHeight = 2025
ClientLeft = 45
ClientTop = 330
ClientWidth = 3750
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2025
ScaleWidth = 3750
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdStart
Caption = "Start"
Height = 375
Left = 720
TabIndex = 3
Top = 1560
Width = 2175
End
Begin VB.OptionButton optOption
Caption = "*.txt files"
Height = 375
Index = 1
Left = 480
TabIndex = 2
Top = 960
Width = 3255
End
Begin VB.OptionButton optOption
Caption = "*.bmp and *.jpg files"
Height = 375
Index = 0
Left = 480
TabIndex = 1
Top = 600
Width = 3255
End
Begin VB.Label Label1
Caption = "What do you want to run:"
Height = 255
Left = 600
TabIndex = 0
Top = 240
Width = 3255
End
End
Attribute VB_Name = "frmIntro"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdStart_Click()
Select Case optOption(0).Value
Case 0
frmTxt.Show
Case 1
frmBmpJpg.Show
End Select
Unload Me
End Sub
Private Sub optOption_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii = 13 Then cmdStart = True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?