主题:VB中下拉式列表框和下拉式组合框
Me.Combo4.AddItem ("注销")
Me.Combo4.AddItem ("重启")
Me.Combo4.AddItem ("关机")
[color=008000][color=00FF00]Me.Combo4.Text = "注销"[/color][/color]
Me.Combo5.AddItem ("强制")
Me.Combo5.AddItem ("非强制")
[color=008000]Me.Combo5.Text = ("非强制")[/color]
For t = 0 To 60
If t <= 24 Then
Me.Combo9.AddItem (Str(t))
Me.Combo6.AddItem (Str(t))
End If
Me.Combo2.AddItem (Str(t))
Me.Combo3.AddItem (Str(t))
Me.Combo7.AddItem (Str(t))
Me.Combo8.AddItem (Str(t))
Next t
Me.Combo1.AddItem ("一")
Me.Combo1.AddItem ("二")
e.Combo1.AddItem ("三")
e.Combo1.AddItem ("四")
[color=FF00FF]Me.Combo1.Text = ("四")[/color]
我将STYLE设置为2,为什么以上程序绿色的可以通过,但红色的不可以?