PPT6 常用标准控件讲义.ppt

(2)编写程序代码 功能要求:在三个框架中分别选择字体、字号和颜色,单击“确定”按钮后,文本框中的文本相应属性会发生变化 Private Sub Form_Load() Option1.Value = True Option3.Value = True Option5.Value = True Text1.FontName = 宋体 Text1.FontSize = 16 Text1.ForeColor = RGB(0, 0, 255) End Sub Private Sub Command1_Click() “确定按钮单击事件 If Option1.Value Then Text1.FontName = 宋体 Else Text1.FontName = 幼圆 End If If Option3.Value Then Text1.FontSize = 16 E

文档评论(0)

1亿VIP精品文档

相关文档