VB 这段代码中单选 按钮不好用,第一个总是被选 中
Option ExplicitPrivate Sub Check1_Click()
Text1.FontBold = Check1.Value
End Sub
Private Sub Check2_Click()
Text1.FontItalic = Check2.Value
End Sub
Private Sub Check3_Click()
Text1.FontUnderline = Check3.Value
End Sub
Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
Text1.FontName = "隶书"
Case 1
Text1.FontName = "黑体"
Case 2
Text1.FontName = "楷体_GB2312"
End Select
End Sub
Private Sub Option2_Click(Index As Integer)
Select Case Index
Case 0
Text1.FontSize = "8"
Case 1
Text1.FontSize = "10"
Case 2
Text1.FontSize = "14"
End Select
End Sub
第一个单选按钮单击选中后,再单击第二个单选 按钮,第一个单选按钮没有自动取消选中状态 。
[ 本帖最后由 票根 于 2010-5-21 12:07 编辑 ]