十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
Private Sub Command1_Click() '等腰三角形
创新互联专注于仓山企业网站建设,自适应网站建设,商城建设。仓山网站建设公司,为仓山等地区提供建站服务。全流程定制制作,专业设计,全程项目跟踪,创新互联专业和态度为您提供的服务
Dim i As Integer, n As Integer
n = 5
For i = 1 To n
Print Space(n - i); String(2 * i - 1, "*")
Next
End Sub
Private Sub Command2_Click() '正方形
Dim i As Integer, n As Integer
n = 5
For i = 1 To n
For j = 1 To n
Print "* ";
Next
Next
End Sub
Private Sub Command3_Click() '等腰梯形
Dim i As Integer, n As Integer, m As Integer
n = 5
m = 5
For i = 1 To n
Print Space(n - i); String(2 * i - 1 + m, "*")
Next
End Sub
直接用me.line(x1,y1)-(x2,y2),LineColor,B就可以了
其中的LineColor是颜色代号,也可以省略不写。
方法有好几种,最简单一个
Line (200, 200)-(2000, 2000), , B '画空心正方形
Line (200, 200)-(2000, 2000), vbRed, BF '-画vbred(纯红颜色)实心正方形
Line (200, 200)-(2000, 2000), RGB(100, 32, 48), BF ‘画自定颜色正方形