📄 practice9-12.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form Form1
Caption = "按指定的行列数生成表格"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 345
ClientWidth = 4320
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 4320
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "填表"
Height = 375
Left = 3240
TabIndex = 7
Top = 120
Width = 735
End
Begin VB.TextBox Text2
Height = 375
Left = 2400
TabIndex = 3
Text = "2"
Top = 120
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Left = 960
TabIndex = 2
Text = "2"
Top = 120
Width = 375
End
Begin MSComCtl2.UpDown UpDown1
Height = 375
Left = 1320
TabIndex = 1
Top = 120
Width = 240
_ExtentX = 423
_ExtentY = 661
_Version = 393216
Value = 2
BuddyControl = "Text1"
BuddyDispid = 196611
OrigLeft = 3120
OrigTop = 480
OrigRight = 3360
OrigBottom = 855
Max = 100
Min = 2
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 2295
Left = 240
TabIndex = 0
Top = 600
Width = 3855
_ExtentX = 6800
_ExtentY = 4048
_Version = 393216
FixedRows = 0
FixedCols = 0
End
Begin MSComCtl2.UpDown UpDown2
Height = 375
Left = 2760
TabIndex = 4
Top = 120
Width = 240
_ExtentX = 423
_ExtentY = 661
_Version = 393216
Value = 2
BuddyControl = "Text2"
BuddyDispid = 196610
OrigLeft = 3120
OrigTop = 480
OrigRight = 3360
OrigBottom = 855
Max = 100
Min = 2
SyncBuddy = -1 'True
BuddyProperty = 65547
Enabled = -1 'True
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "列数:"
Height = 180
Left = 1800
TabIndex = 6
Top = 240
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "行数:"
Height = 180
Left = 360
TabIndex = 5
Top = 240
Width = 540
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 MSFlexGrid1.Rows - 1
For j = 0 To MSFlexGrid1.Cols - 1
MSFlexGrid1.TextMatrix(i, j) = Int(Rnd * 10)
Next j
Next i
End Sub
Private Sub UpDown1_Change()
MSFlexGrid1.Rows = Val(Text1.Text)
End Sub
Private Sub UpDown2_Change()
MSFlexGrid1.Cols = Val(Text2.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -