vb通过组合框内容改变标签字体,注意是标签请用标签的属性方法
展开全部
Private Sub Combo1_Click()
Label1.FontName = Combo1.Text
End Sub
Private Sub Form_Load()
Me.AutoRedraw = True
Combo1.AddItem "宋体"
Combo1.AddItem "黑体"
Combo1.AddItem "隶书"
Combo1.AddItem "微软雅黑"
Combo1.AddItem "幼圆"
Combo1.AddItem "新宋体"
Combo1.AddItem "楷体_GB2312"
Combo1.AddItem "方正姚体"
Combo1.AddItem "方正舒体"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询