practice8_3.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 43 行
FRM
43 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.PictureBox Picture1
Height = 2895
Left = 240
ScaleHeight = 2835
ScaleWidth = 4155
TabIndex = 0
Top = 120
Width = 4215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub m(d As String, n As Integer)
For i = 1 To n
Picture1.Print Tab(i);
For j = 1 To n
Picture1.Print d;
Next j
Print
Next i
End Sub
Private Sub Picture1_Click()
Dim a As String, b As Integer
Picture1.Cls
b = Val(InputBox("请输入行数"))
a = InputBox("请输入一个字符")
Call m(a, b)
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?