practice7_8.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 68 行
FRM
68 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2820
ClientLeft = 60
ClientTop = 345
ClientWidth = 4275
LinkTopic = "Form1"
ScaleHeight = 2820
ScaleWidth = 4275
StartUpPosition = 2 '屏幕中心
Begin VB.PictureBox Picture2
Height = 1695
Left = 2280
ScaleHeight = 1635
ScaleWidth = 1635
TabIndex = 2
Top = 240
Width = 1695
End
Begin VB.PictureBox Picture1
Height = 1695
Left = 240
ScaleHeight = 1635
ScaleWidth = 1635
TabIndex = 1
Top = 240
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "转置"
Height = 495
Left = 1320
TabIndex = 0
Top = 2160
Width = 1695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a(1 To 6, 1 To 6), b(1 To 6, 1 To 6)
Private Sub Command1_Click()
Randomize
Picture2.Cls
For i = 1 To 6
For j = 1 To 6
b(i, j) = a(j, i)
Picture2.Print Format(b(i, j), "!@@@");
Next j
Picture2.Print
Next i
End Sub
Private Sub Picture1_Click()
Randomize
Picture1.Cls
For i = 1 To 6
For j = 1 To 6
a(i, j) = Int(Rnd * 9) + 1
Picture1.Print Format(a(i, j), "!@@@");
Next j
Picture1.Print
Next i
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?