VB程序设计题,希望高手帮忙

来源:百度知道 编辑:UC知道 时间:2024/06/03 19:03:08
版本是VB6.0

题目:输入整数n,显示出具有n行的杨辉三角形.(利用TAB函数确定每列的宽度,使得列对齐;在文本框中输入行数,在label或picturebox中显示效果)

效果: 1
1 1
1 2 1
1 3 3 1
...
依此类推

VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 8775
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 8775
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox pic1
Height = 2295
Left = 180
ScaleHeight = 2235
ScaleWidth = 8235
TabIndex = 2
Top = 600
Width = 8295
End
Begin VB.TextBox txt1
Height = 375
Left = 2580
TabIndex = 1
Text = "10"
Top = 120
Width = 1095
End
Begin VB.CommandButton cmd1
Caption = "