VB:如何用option button来控制文本框的字体:如3个单选按钮:宋体,黑体,楷体,点击时宋体时,文本框里的字体自
动改成宋体!急等大家的回复!PrivateSubOption1_Click()Text1.FontName="宋体"EndSubPrivateSubOption2_Cli...
动改成宋体!急等大家的回复!
Private Sub Option1_Click()
Text1.FontName = "宋体"
End Sub
Private Sub Option2_Click()
Text1.FontName = "黑体"
End Sub
Private Sub Option3_Click()
Text1.FontName = "楷体"
End Sub 展开
Private Sub Option1_Click()
Text1.FontName = "宋体"
End Sub
Private Sub Option2_Click()
Text1.FontName = "黑体"
End Sub
Private Sub Option3_Click()
Text1.FontName = "楷体"
End Sub 展开
4个回答
展开全部
在每个option button的change()事件里面都写。非常容易操作的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Option1_Click()
Text1.Font = "宋体"
End Sub
Private Sub Option2_Click()
Text1.Font = "黑体"
End Sub
Private Sub Option3_Click()
Text1.Font = "楷体"
End Sub
Text1.Font = "宋体"
End Sub
Private Sub Option2_Click()
Text1.Font = "黑体"
End Sub
Private Sub Option3_Click()
Text1.Font = "楷体"
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
Text1.Font.Name = "宋体"
Case 1
Text1.Font.Name = "黑体"
Case 2
Text1.Font.Name = "楷体"
End Select
End Sub
Select Case Index
Case 0
Text1.Font.Name = "宋体"
Case 1
Text1.Font.Name = "黑体"
Case 2
Text1.Font.Name = "楷体"
End Select
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询