📄 form1.frm
字号:
TabIndex = 53
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 51
Left = 3420
TabIndex = 52
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 50
Left = 2895
TabIndex = 51
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 49
Left = 2370
TabIndex = 50
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 48
Left = 1830
TabIndex = 49
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 47
Left = 1305
TabIndex = 48
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 46
Left = 765
TabIndex = 47
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 45
Left = 240
TabIndex = 46
Top = 1566
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 42
Left = 6615
TabIndex = 45
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 41
Left = 6075
TabIndex = 44
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 40
Left = 5550
TabIndex = 43
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 39
Left = 5025
TabIndex = 42
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 38
Left = 4485
TabIndex = 41
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 37
Left = 3960
TabIndex = 40
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 36
Left = 3420
TabIndex = 39
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 35
Left = 2895
TabIndex = 38
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 34
Left = 2370
TabIndex = 37
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 33
Left = 1830
TabIndex = 36
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 32
Left = 1305
TabIndex = 35
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 31
Left = 765
TabIndex = 34
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 30
Left = 240
TabIndex = 33
Top = 1164
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 27
Left = 6615
TabIndex = 32
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 26
Left = 6075
TabIndex = 31
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 25
Left = 5550
TabIndex = 30
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 24
Left = 5025
TabIndex = 29
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 23
Left = 4485
TabIndex = 28
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 22
Left = 3960
TabIndex = 27
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 21
Left = 3420
TabIndex = 26
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 20
Left = 2895
TabIndex = 25
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 19
Left = 2370
TabIndex = 24
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 18
Left = 1830
TabIndex = 23
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 17
Left = 1305
TabIndex = 22
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 16
Left = 765
TabIndex = 21
Text = "1"
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 15
Left = 240
TabIndex = 20
Text = "1"
Top = 762
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 12
Left = 6612
TabIndex = 19
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 11
Left = 6081
TabIndex = 18
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 10
Left = 5550
TabIndex = 17
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 9
Left = 5019
TabIndex = 16
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 8
Left = 4488
TabIndex = 15
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 7
Left = 3957
TabIndex = 14
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 6
Left = 3426
TabIndex = 13
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 5
Left = 2895
TabIndex = 12
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 4
Left = 2364
TabIndex = 11
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 3
Left = 1833
TabIndex = 10
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 2
Left = 1302
TabIndex = 9
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 1
Left = 771
TabIndex = 8
Text = "2"
Top = 360
Width = 375
End
Begin VB.TextBox Text3
Height = 285
Index = 0
Left = 240
TabIndex = 7
Text = "2"
Top = 360
Width = 375
End
End
Begin VB.CommandButton Command2
Caption = "OK"
Height = 375
Left = 3840
TabIndex = 3
Top = 600
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 2760
TabIndex = 2
Text = "2"
Top = 600
Width = 615
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 1
Text = "2"
Top = 600
Width = 735
End
Begin VB.CommandButton Command1
Caption = "下一步"
Height = 375
Left = 7440
TabIndex = 0
Top = 7800
Width = 1335
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "X"
Height = 195
Left = 2400
TabIndex = 5
Top = 720
Width = 105
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "行列数:"
Height = 195
Left = 480
TabIndex = 4
Top = 720
Width = 720
End
Begin VB.Menu hp
Caption = "help"
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
For i = 0 To Val(Text1.Text) - 1
For j = 0 To Val(Text2.Text) - 1
a(i, j) = Val(Text3(i * 15 + j).Text)
Next
Next
Form2.Show
Unload Me
For i = 0 To 14
For j = 0 To 14
Text3(i * 15 + j).Visible = False
Next
Next
End Sub
Private Sub Command2_Click()
For i = 0 To 12
For j = 0 To 14
Text3(i * 15 + j).Visible = False
Next
Next
For i = 0 To Val(Text1.Text) - 1
For j = 0 To Val(Text2.Text) - 1
Text3(i * 15 + j).Visible = True
Next
Next
t1 = Val(Text1.Text)
t2 = Val(Text2.Text)
End Sub
Private Sub Form_Load()
For i = 0 To 14
For j = 0 To 14
Text3(i * 15 + j).Visible = False
Next
Next
End Sub
Private Sub hp_Click()
MsgBox "注意矩阵乘法的条件,矩阵最大为15*15!", , "友情提示"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -